Open dyzhuu opened 4 days ago
I also had a similiar issue here, and I think it has to do with storing the time in UTC, and then drizzle-kit seams to assume that it is stored in your local time zone, and then converts it again to UTC, creating an offset.
I can compare these values using another database viewer like Dbeaver.
DBeaver:
DrizzleKit:
Actual Response from Drizzle ORM in Production (correct):
This means Drizzle Kit is providing a different response than Drizzle ORM. I am using a postgres database in this case, with the date mode on.
What version of
drizzle-orm
are you using?0.30.7
What version of
drizzle-kit
are you using?0.21.1
Describe the Bug
Drizzle studio shows an incorrect timestamp that is 13 hours behind the expected timestamp.
This is how the table is defined:
Expected behavior
Data returned from query (expected):
Data shown on drizzle studio:![image](https://github.com/drizzle-team/drizzle-orm/assets/119282717/81f19361-32c0-4d75-ac43-940a8775b2d4)
Environment & setup
No response