mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +00:00
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;
|
let dv: Date | null = null;
|
||||||
|
|
||||||
if (field.value) {
|
if (field.value) {
|
||||||
dv = new Date(field.value);
|
dv = dayjs(field.value).toDate();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure that the date is valid
|
// Ensure that the date is valid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user