Browse Source

fix(nc-gui): remove localTime in utc for mysql

pull/5642/head
Wing-Kam Wong 2 years ago
parent
commit
f05941edf1
  1. 4
      packages/nc-gui/components/cell/DateTimePicker.vue

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

@ -65,9 +65,7 @@ let localState = $computed({
// when pasting a datetime cell, UTC (xcdb) will be saved in DB // when pasting a datetime cell, UTC (xcdb) will be saved in DB
// we convert back to local time // we convert back to local time
if (column.value.title! in (isUpdatedFromCopyNPaste ?? {})) { if (column.value.title! in (isUpdatedFromCopyNPaste ?? {})) {
localModelValue = dayjs(modelValue) localModelValue = dayjs(modelValue).utc().local()
.utc(isMysql(column.value.base_id))
.local()
return localModelValue return localModelValue
} }

Loading…
Cancel
Save