use dayjs in datefield (#9380)
This commit is contained in:
parent
d8f5a56064
commit
2bd26c0f49
|
|
@ -48,7 +48,7 @@ export default function DateField({
|
|||
let dv: Date | null = null;
|
||||
|
||||
if (field.value) {
|
||||
dv = new Date(field.value);
|
||||
dv = dayjs(field.value).toDate();
|
||||
}
|
||||
|
||||
// Ensure that the date is valid
|
||||
|
|
|
|||
Loading…
Reference in New Issue