From 52582f9800f441648469500f55dad044f419a58e Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 9 May 2023 20:19:52 +0800 Subject: [PATCH] fix(nc-gui): keep local time for mysql only --- packages/nc-gui/components/cell/DateTimePicker.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/cell/DateTimePicker.vue b/packages/nc-gui/components/cell/DateTimePicker.vue index a9488e4e52..2a5ff5fd88 100644 --- a/packages/nc-gui/components/cell/DateTimePicker.vue +++ b/packages/nc-gui/components/cell/DateTimePicker.vue @@ -79,7 +79,7 @@ let localState = $computed({ // when pasting a datetime cell, UTC (xcdb) will be saved in DB // we convert back to local time if (column.value.title! in (isUpdatedFromCopyNPaste ?? {})) { - localModelValue = dayjs(modelValue).utc(true).local() + localModelValue = dayjs(modelValue).utc(isMysql(column.value.base_id)).local() return localModelValue }