You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
Jaaneek
changed the title
Postgres Timestampz is generated without withTimezone:true
Postgres TimestampTZ is generated without withTimezone:true
Feb 1, 2024
Prisma, by default, doesn't include timezone data for DateTime fields unless you use the @db modifier. Automatically enabling withTimezone might lead to unexpected behaviors for users not using this modifier.
Although it could be conditionally generated only for ones with @db.timestamptz, Prisma's DMMF helper doesn't give any information regarding the use of modifiers. I'm seeking a workaround for this limitation.
When we have timestampTZ from postgres we should add withTimezone true to the drizzle schema.
here is how it should look like:
Description of drizzle timestamps
Related tweet https://twitter.com/Jaaneek/status/1751655615271727251
The text was updated successfully, but these errors were encountered: