We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0702d6e commit e8b2f26Copy full SHA for e8b2f26
packages/zod/src/index.ts
@@ -28,6 +28,6 @@ function makeScalarSchema(fieldDef: FieldDef): ZodType {
28
.with('String', () => z.string())
29
.with(P.union('Int', 'BigInt', 'Float', 'Decimal'), () => z.number())
30
.with('Boolean', () => z.boolean())
31
- .with('DateTime', () => z.iso.datetime())
+ .with('DateTime', () => z.string().datetime())
32
.otherwise(() => z.unknown());
33
}
0 commit comments