Browse Source

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

pull/5642/head
Wing-Kam Wong 1 year 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
// we convert back to local time
if (column.value.title! in (isUpdatedFromCopyNPaste ?? {})) {
localModelValue = dayjs(modelValue)
.utc(isMysql(column.value.base_id))
.local()
localModelValue = dayjs(modelValue).utc().local()
return localModelValue
}

Loading…
Cancel
Save