Prisma Date Day Off

Hello,

I currently have the following:
model SomeModel {
  date    DateTime  @db.Date()
}

prisma.somemodel.insert({
  data: {
    date: new Date("2023-06-10")
  }
});
but the problem is that it saves the date as 2023-06-09 in the PostgreSQL database. Idk how to fix this
Solution
I just added UTC after the day, got fixed, thanks 🙂
Was this page helpful?