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

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

(cherry picked from commit 2bd26c0f49)

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

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