Skip to content

Commit 8a1253e

Browse files
committed
make sure that CreateTimeEntry modal always starts with times that have 0 seconds
1 parent 661fa25 commit 8a1253e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/js/packages/ui/src/TimeEntry/TimeEntryCreateModal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ const timeEntryDefaultValues = {
6161
task_id: null,
6262
tags: [],
6363
billable: false,
64-
start: getDayJsInstance().utc().subtract(1, 'h').format(),
65-
end: getDayJsInstance().utc().format(),
64+
start: getDayJsInstance().utc().subtract(1, 'h').second(0).format(),
65+
end: getDayJsInstance().utc().second(0).format(),
6666
};
6767
6868
const timeEntry = ref({

0 commit comments

Comments
 (0)