Browse Source

fix: dateTime timezone issue

pull/7173/head
Ramesh Mane 11 months ago
parent
commit
d34f7e66a7
  1. 4
      packages/nc-gui/components/cell/DateTimePicker.vue

4
packages/nc-gui/components/cell/DateTimePicker.vue

@ -138,7 +138,9 @@ watch(
onClickOutside(document.querySelector(`.${randomClass}`)! as HTMLDivElement, () => (open.value = false)) onClickOutside(document.querySelector(`.${randomClass}`)! as HTMLDivElement, () => (open.value = false))
if (!modelValue) { if (!modelValue) {
tempLocalValue.value = dayjs(new Date()) tempLocalValue.value = dayjs(new Date()).utc().local()
} else {
tempLocalValue.value = undefined
} }
} else { } else {
editable.value = false editable.value = false

Loading…
Cancel
Save