diff --git a/resources/js/Components/Common/TimePicker.vue b/resources/js/Components/Common/TimePicker.vue
index d84b48de..e18ce234 100644
--- a/resources/js/Components/Common/TimePicker.vue
+++ b/resources/js/Components/Common/TimePicker.vue
@@ -1,7 +1,8 @@
@@ -58,7 +83,8 @@ const emit = defineEmits(['changed']);
)
">
:
{
tempEnd.value = getLocalizedDayJs(props.end).format();
});
function updateTimeEntry() {
- if (tempStart.value !== props.start || tempEnd.value !== props.end) {
+ const tempStartUtc = getDayJsInstance()(tempStart.value).utc().format();
+ const tempEndUtc = tempEnd.value
+ ? getDayJsInstance()(tempEnd.value).utc().format()
+ : null;
+ if (tempStartUtc !== props.start || tempEndUtc !== props.end) {
emit(
'changed',
getDayJsInstance()(tempStart.value).utc().format(),
@@ -52,6 +56,7 @@ watch(focused, (newValue, oldValue) => {