eveningkid / denodb

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno

Home Page:https://eveningkid.com/denodb-docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Postgresql: Timestamp fields adding hours each time records are updated

pvillaverde opened this issue · comments

Hey there!

I've found an annoying bug while creating an app with denodb@v1.2.0. I'm using PostgreSQL Database and have a table with a Timestamp field. Whenever a record is updated, the timestamp field adds one or two hours:

 2021-01-09 05:57
 2021-01-09 07:57
 2021-01-09 09:57
....

I have double checked that I am not touching that field, and I believe it has something to do with time zones and thus the difference of one or two hours being added (Daily Saving Time wether its summer or winter). The "timestamp" fields created_at and update_at however are working perfectly and on the database the fields are all of them timestamp with time zone, so I do not have any clue right now on how to fix it wether is a misconfiguration on my part or some bug on DenoDB.

Any help will be deeply appreciated!