Browse Source

fix(nc-gui): keep local time for mysql only

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

2
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
}

Loading…
Cancel
Save