mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-06 10:21:18 +00:00
use dayjs in datefield (#9380)
This commit is contained in:
1 parent
d8f5a56064
commit
2bd26c0f49
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user