diff --git a/src/components/common/VnInputTime.vue b/src/components/common/VnInputTime.vue index aefee1a4d..6b0c99743 100644 --- a/src/components/common/VnInputTime.vue +++ b/src/components/common/VnInputTime.vue @@ -2,7 +2,7 @@ import { computed, ref } from 'vue'; import { useI18n } from 'vue-i18n'; import isValidDate from 'filters/isValidDate'; -import VnInput from "components/common/VnInput.vue"; +import VnInput from 'components/common/VnInput.vue'; const props = defineProps({ modelValue: { @@ -27,12 +27,7 @@ const value = computed({ set(value) { const [hours, minutes] = value.split(':'); const date = new Date(props.modelValue); - date.setHours( - Number.parseInt(hours) || 0, - Number.parseInt(minutes) || 0, - 0, - 0 - ); + date.setHours(Number.parseInt(hours) || 0, Number.parseInt(minutes) || 0, 0, 0); emit('update:modelValue', value ? date.toISOString() : null); }, }); @@ -79,7 +74,7 @@ const styleAttrs = computed(() => { @click="isPopupOpen = true" >