You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using TypeORM 0.0.5, which is persisting into a Postgres 9.6 instance. When I create an entity with CreateDateColumn and UpdateDateColumn, it persists the date as an UTC timestamp correctly. However, when I used findOneById to get the entity, the corresponding fields are being parsed in local time. I have set both storeInLocalTimezone and loadInLocalTimezone to false. Is this supposed to be the expected behavior?
The text was updated successfully, but these errors were encountered:
It looks like this is how underlaying drivers work. In mysql there is timezone: "utc" that can be used to make it work correctly. in postgres here is issue, somebody suggest to set machine time to timezone and problem will be resolved
I'm currently using TypeORM 0.0.5, which is persisting into a Postgres 9.6 instance. When I create an entity with CreateDateColumn and UpdateDateColumn, it persists the date as an UTC timestamp correctly. However, when I used findOneById to get the entity, the corresponding fields are being parsed in local time. I have set both storeInLocalTimezone and loadInLocalTimezone to false. Is this supposed to be the expected behavior?
The text was updated successfully, but these errors were encountered: