-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Date params conversion #1172
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
Comments
I think you have to set it on your database session. https://www.postgresql.org/docs/9.1/static/sql-set.html
|
Thanks, but that's not it - DB is set to UTC. |
@pankleks If column type is
To resolve this issue you can override default parser for datetime and parse it always in |
To be explicit, do something similar to this post: #1746 (comment) |
Hi,
I setup node env with TZ=UTC
I run update statement with date params - dates are in UTC ("2016-11-28T08:00:00.000Z")
Still my date is converted to computer local time (i'm in UTC + 1) and I see 9AM in database.
Column type is TIMESTAMP (without timezone)
Does pg respects TZ setting of node env?
Thanks!
The text was updated successfully, but these errors were encountered: