2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 03:26:45 +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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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