Does anyone know how to change the UTC timezone fo...
# orm-help
c
Does anyone know how to change the UTC timezone for the Prisma server? I need to use Pacific/Auckland
c
If you use moment.js or similar, it does it under the hood
c
that would be fine for displaying the dates on the frontend but what about querying the db data by specific data and time?
c
I mean, use that when querying. For example, if you want to find the posts created at 9 AM in Auckland,
Copy code
const createdAt = <http://moment.tz|moment.tz>("2019-03-07 09:00", "Pacific/Auckland").format()
prisma.posts({where: {createdAt});
should just work.