Browse Source

fix(nc-gui): show as it is in ext db

pull/5601/head
Wing-Kam Wong 2 years ago
parent
commit
b13a1e7231
  1. 5
      packages/nc-gui/components/cell/DateTimePicker.vue

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

@ -58,6 +58,11 @@ let localState = $computed({
return undefined return undefined
} }
// ext db
if (!isXcdbBase(column.value.base_id)) {
return /^\d+$/.test(modelValue) ? dayjs(+modelValue) : dayjs(modelValue)
}
if (isMssql(column.value.base_id)) { if (isMssql(column.value.base_id)) {
// e.g. 2023-04-29T11:41:53.000Z // e.g. 2023-04-29T11:41:53.000Z
return dayjs(modelValue) return dayjs(modelValue)

Loading…
Cancel
Save