mirror of
https://github.com/strapi/strapi.git
synced 2025-07-24 17:40:18 +00:00
Use ISOString instead of Date for Default date values
This commit is contained in:
parent
d0168cf957
commit
704cdd8ae7
@ -103,7 +103,7 @@ const toTypeLiteral = data => {
|
||||
}
|
||||
|
||||
if (isDate(data)) {
|
||||
return factory.createTypeReferenceNode('Date');
|
||||
return factory.createStringLiteral(data.toISOString());
|
||||
}
|
||||
|
||||
if (typeof data !== 'object') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user