PrismaP
Prisma10mo ago
6 replies
max

Is there a way to differently parse DateTime and db.Date when reading from Postgres

Both DateTime and db.Date are being parsed into a full Date in js. This causes unwanted behavior since the Day will shift for negative Timezones and hand-picking the affected fields for differenting handling is not a viable solution for me.
I'd like a generic way to apply a different parsing strategy for different Database types
Was this page helpful?