From d34f7e66a74a1fbecdcf93aed8fbc490d0d1826b Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Mon, 11 Dec 2023 16:50:08 +0530 Subject: [PATCH] fix: dateTime timezone issue --- packages/nc-gui/components/cell/DateTimePicker.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/components/cell/DateTimePicker.vue b/packages/nc-gui/components/cell/DateTimePicker.vue index e16aa034f4..0093fc4bce 100644 --- a/packages/nc-gui/components/cell/DateTimePicker.vue +++ b/packages/nc-gui/components/cell/DateTimePicker.vue @@ -138,7 +138,9 @@ watch( onClickOutside(document.querySelector(`.${randomClass}`)! as HTMLDivElement, () => (open.value = false)) if (!modelValue) { - tempLocalValue.value = dayjs(new Date()) + tempLocalValue.value = dayjs(new Date()).utc().local() + } else { + tempLocalValue.value = undefined } } else { editable.value = false