Browse Source

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

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

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

@ -71,7 +71,7 @@ let localState = $computed({
// if cdf is defined, that means the value is auto-generated
// hence, show the local time
if (column?.value?.cdf) {
return dayjs(modelValue).utc(true).local()
return dayjs(modelValue).utc(isMysql(column.value.base_id)).local()
}
// cater copy and paste

Loading…
Cancel
Save