Hi! I'm not entirely sure if I have a prisma probl...
# orm-help
m
Hi! I'm not entirely sure if I have a prisma problem, but maybe you could help me. I'm using moment timezone library to get a date from a +2h timezone. We used to have typeorm so it would only save a date, now it's datetime and for some reason it gets saved as yesterday's date 220000. Do you know what I should do to get a proper date for example today 2021-9-1 000000?
r
@Mateusz Żmijewski 👋 It’s not yesterday’s date, Prisma stores the date in UTC so which is why you’re seeing a difference.
a
@Mateusz Żmijewski you should move away from using moment.js as it’s no longer maintained. Look at alternative libs like date-fns.