2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 03:26:45 +00:00

use dayjs in datefield (#9380) (#9381)

(cherry picked from commit 2bd26c0f49605655aae8281e7fc0ef76e03c0546)

Co-authored-by: Jacob Felknor <jacobfelknor073@gmail.com>
This commit is contained in:
github-actions[bot] 2025-03-26 10:56:33 +11:00 committed by GitHub
parent 4987149979
commit ccaf3459ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,7 +43,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