Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgresql: Timestamp fields adding hours each time records are updated #375

Open
pvillaverde opened this issue Jan 20, 2023 · 0 comments
Open

Comments

@pvillaverde
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant