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
I am not in UTC timezone.
Normally:
>>> datetime.utcnow().timestamp() - datetime.now().timestamp() 25199.999709129333
with freeze_time:
>>> with freeze_time('2012-01-14'): ... datetime.utcnow().timestamp() - datetime.now().timestamp() ... 0.0
Isn't this wrong ?! freeze_time should preserve the timezone offset.
The text was updated successfully, but these errors were encountered:
I think this happens because freeze_time takes an optional tz_offset argument that defaults to 0.
freeze_time
tz_offset
Sorry, something went wrong.
No branches or pull requests
I am not in UTC timezone.
Normally:
with freeze_time:
Isn't this wrong ?! freeze_time should preserve the timezone offset.
The text was updated successfully, but these errors were encountered: