Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

fix: Use UTC datetimes #2122

Merged
merged 2 commits into from
Oct 10, 2022
Merged

fix: Use UTC datetimes #2122

merged 2 commits into from
Oct 10, 2022

Conversation

l0b0
Copy link
Contributor

@l0b0 l0b0 commented Oct 10, 2022

utcnow returns a datetime without a time zone, which makes it risky for any kind of use. We should avoid it and utcfromtimestamp. See https://blog.ganssle.io/articles/2019/11/utcnow.html for details.

Reference

Code review checklist

`utcnow` returns a datetime without a time zone, which makes it risky
for any kind of use. We should avoid it and `utcfromtimestamp`. See
<https://blog.ganssle.io/articles/2019/11/utcnow.html> for details.
@kodiakhq kodiakhq bot merged commit e87d6b6 into master Oct 10, 2022
@kodiakhq kodiakhq bot deleted the fix/use-utc-datetime branch October 10, 2022 03:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

2 participants