There was an error while loading. Please reload this page.
1 parent bbfa4e7 commit c68b818Copy full SHA for c68b818
src/server/templates/zod.ts
@@ -480,6 +480,8 @@ const pgTypeToZodSchema = (
480
if (dateLikeTypes.has(pgType)) {
481
if (mode === 'list') {
482
// Read shapes coerce to Date
483
+ return 'z.coerce.date()'
484
+ } else if (mode === 'insert_lenient') {
485
return 'dateParser'
486
} else {
487
// Write shapes: only Date in, string out (ISO)
0 commit comments