-
Notifications
You must be signed in to change notification settings - Fork 420
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
Invalid last_modified value on a timezone other than UTC #3419
Comments
That's probably true indeed. Because I don't think we ever supported any other timezone than UTC. We stated in the docs: And that's why we have this check: kinto/kinto/core/storage/postgresql/__init__.py Lines 108 to 111 in 5ef3cae
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
We're using kinto with a database using the Europe/Paris timezone, and we've noticed that the bump_timestamp function calculates a value in the future for the last_modified property.
The cause is that the timezone is not taken into account in the as_epoch function. An erroneous timestamp is obtained when the result of the as_epoch function is passed as a parameter to the from_epoch function.
Example :
Best regards.
The text was updated successfully, but these errors were encountered: