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