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.datetime.utcnow #2414

Merged
merged 9 commits into from
Dec 23, 2024

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Oct 19, 2024

No description provided.

Comment on lines +908 to +912

>>> (now - datetime.datetime.now(datetime.timezone.utc)) < datetime.timedelta(seconds = 5)
True
>>> type(now.tzinfo) is TimeZoneInfo
True
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if these are quite necessary

Copy link
Owner

@mhammond mhammond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the commit message mean to say "utcnow()"?

@Avasam Avasam changed the title Replace deprecated datetime.datetime.now Replace deprecated datetime.datetime.utcnow Dec 23, 2024
@Avasam Avasam merged commit 181c071 into mhammond:main Dec 23, 2024
31 checks passed
@Avasam Avasam deleted the Replace-deprecated-datetime.datetime.now branch December 23, 2024 01:51
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.

2 participants