Skip to content
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

Replace deprecated datetime.utcfromtimestamp() #109

Merged
merged 4 commits into from
Aug 21, 2023
Merged

Replace deprecated datetime.utcfromtimestamp() #109

merged 4 commits into from
Aug 21, 2023

Conversation

cdce8p
Copy link
Contributor

@cdce8p cdce8p commented Aug 3, 2023

Starting with 3.12, datetime.utcfromtimestamp(...) is deprecated and should be replaced with datetime.fromtimestamp(..., tz=utc).replace(tzinfo=None).
https://docs.python.org/3.12/library/datetime.html#datetime.datetime.utcfromtimestamp

Fixes: #105

@stub42 stub42 merged commit 488d3eb into stub42:master Aug 21, 2023
2 of 8 checks passed
@stub42
Copy link
Owner

stub42 commented Aug 21, 2023

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

utcfromtimestamp() is deprecated in Python 3.12
3 participants