-
Notifications
You must be signed in to change notification settings - Fork 163
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
Timestamp with time zone not mapped correctly #366
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
Per the Trino documentation the Trino DB-API should correctly map timestamps with time zone to Python
datetime
objects.Actual behavior
Per the example provided in the Trino documentation,
returns
which is incorrect by 53 minutes due to how
pytz
time zones are bound. The expected outcome isSteps To Reproduce
See above.
Log output
This article outlines the fundamental issue which states,
See this StackOverflow post for additional information and how time zone localization works with the
pytz
package.Operating System
Ubuntu
Trino Python client version
0.321.0
Trino Server version
393.0
Python version
3.9.16
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: