Join Slack
Powered by
DateTime field in UpdateAt and Created at with def...
# orm-help
d
Dan Shapir
06/06/2021, 6:29 PM
DateTime field in UpdateAt and Created at with default(now) is without timezone (Postgres). How can this be fixed?
r
Ryan
06/07/2021, 8:54 AM
@Dan Shapir
👋 Prisma by default stores the time in UTC which is recommended due to timezone values. You can use
timestamptz
native type
if you would like to save the timezone.
d
Dan Shapir
06/07/2021, 1:05 PM
@Ryan
so Prisma will translate to UTC always? Meaning timestampz that basically does the same has not value?
r
Ryan
06/07/2021, 1:10 PM
Yes Prisma always translates to UTC.
4
Views
Open in Slack
Previous
Next