how to set this to prisma date and time default? n...
# orm-help
g
how to set this to prisma date and time default? new Date().toLocaleDateString()
v
It depends on your server time zone. That could be the reason why it does not match the time on your machine. What time zones do you have on each?
g
Asia/Manila
Will contact the hosting provider
r
@Gelo 👋 I would recommend setting your server timezone and database timezone to
UTC
to avoid any confusion and make queries for dates easier.
v
Great point! Yes, only worry about local timezones on your clients of the API. For example, if you have a mobile app and need to show the time you can use date-fns for localizing the UTC to the local timezone of the device
g
Great help thank you guys 🙇 @Ryan @Victor Iris