mirror of
https://github.com/strapi/strapi.git
synced 2025-07-25 18:05:07 +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)) {
|
if (isDate(data)) {
|
||||||
return factory.createTypeReferenceNode('Date');
|
return factory.createStringLiteral(data.toISOString());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof data !== 'object') {
|
if (typeof data !== 'object') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user