@postxl/generator 0.6.9 → 0.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -151,8 +151,9 @@ function generateFieldDataBoolean({}) {
|
|
|
151
151
|
return faker_1.faker.datatype.boolean().toString();
|
|
152
152
|
}
|
|
153
153
|
function generateFieldDataDate({ field, model, index }) {
|
|
154
|
-
const d = faker_1.faker.date.past(3);
|
|
155
|
-
|
|
154
|
+
const d = faker_1.faker.date.past(3, '2023-04-01T00:00:00.000Z');
|
|
155
|
+
//set time to midnight UTC
|
|
156
|
+
d.setUTCHours(0, 0, 0, 0);
|
|
156
157
|
return `new Date('${d.toISOString()}')`;
|
|
157
158
|
}
|
|
158
159
|
function generateFieldDataRelation({ field, model, index, itemCount, }) {
|