Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix deprecationwarning for datetime.utcnow#144

Open
Matthieu-LAURENT39 wants to merge 2 commits intojowilf:mainfrom
Matthieu-LAURENT39:fix_deprecation
Open

Fix deprecationwarning for datetime.utcnow#144
Matthieu-LAURENT39 wants to merge 2 commits intojowilf:mainfrom
Matthieu-LAURENT39:fix_deprecation

Conversation

Copy link
Contributor

Matthieu-LAURENT39 commented Feb 22, 2024 *
edited
Loading

This replaces the call to datetime.utcnow() to datetime.now(timezone.utc).
datetime.utcnow() is deprecated since python 3.12, and as such shows a warning every time save_to_storage() is called.

We use timezone.utc instead of the more recent datetime.utc, since only the former is available in python 3.7

jowilf, prostospirit, and benedikt-bartscher reacted with thumbs up emoji
Matthieu-LAURENT39 marked this pull request as draft February 22, 2024 11:30
Matthieu-LAURENT39 marked this pull request as ready for review February 22, 2024 11:30
Copy link

yobuntu commented May 3, 2024

should fix : #150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants