|
|
|
@ -25,7 +25,7 @@ const { modelValue, isPk, isUpdateOutside } = defineProps<Props>()
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits(['update:modelValue']) |
|
|
|
|
|
|
|
|
|
const { isMysql, isSqlite, isXcdbBase } = useProject() |
|
|
|
|
const { isMssql, isMysql, isSqlite, isXcdbBase } = useProject() |
|
|
|
|
|
|
|
|
|
const { showNull } = useGlobal() |
|
|
|
|
|
|
|
|
@ -58,6 +58,11 @@ let localState = $computed({
|
|
|
|
|
return undefined |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (isMssql(column.value.base_id)) { |
|
|
|
|
// e.g. 2023-04-29T11:41:53.000Z |
|
|
|
|
return dayjs(modelValue) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// if cdf is defined, that means the value is auto-generated |
|
|
|
|
// hence, show the local time |
|
|
|
|
if (column?.value?.cdf) { |
|
|
|
|