Handle dateonly by default

This commit is contained in:
Adria Navarro 2024-06-06 13:25:13 +02:00
parent f09b6bf090
commit 9ad1d60850
1 changed files with 5 additions and 1 deletions

View File

@ -69,9 +69,13 @@
}
},
[FieldType.DATETIME]: (_field, schema) => {
return {
const props = {
valueAsTimestamp: !schema?.timeOnly,
}
if (schema?.dateOnly) {
props.enableTime = false
}
return props
},
}