We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
date.fromtimestamp is supposed to take a local timestamp not a UTC one. I am in a timezone that is behind UTC, so all dates are 1 day behind.
>>> datetime.date.fromtimestamp(0) datetime.date(1969, 12, 31)
To fix this you need to use datetime.datetime.utcfromtimestamp().date() instead.
clickhouse-driver/src/columns/datecolumn.py
Line 18 in a3a2651
return datetime.datetime.utcfromtimestamp(value * self.offset).date()
The text was updated successfully, but these errors were encountered:
Fixed: dcfe640.
This change will be in next release.
Sorry, something went wrong.
That's great, did you take a look at another fix I proposed here?
#20
Hi, @Thordin
Version 0.0.10 is released. Should we close this issue?
No branches or pull requests
date.fromtimestamp is supposed to take a local timestamp not a UTC one. I am in a timezone that is behind UTC, so all dates are 1 day behind.
To fix this you need to use datetime.datetime.utcfromtimestamp().date() instead.
clickhouse-driver/src/columns/datecolumn.py
Line 18 in a3a2651
return datetime.datetime.utcfromtimestamp(value * self.offset).date()
The text was updated successfully, but these errors were encountered: