Skip to content

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

@pvillaverde

Description

@pvillaverde

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions