2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 18:45:40 +00:00

use dayjs in datefield (#9380)

This commit is contained in:
Jacob Felknor
2025-03-25 17:35:26 -06:00
committed by GitHub
parent d8f5a56064
commit 2bd26c0f49

View File

@ -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