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

datetime.utcnow() is deprecated: stop using it #2572

Closed
jku opened this issue Feb 26, 2024 · 1 comment · Fixed by #2573
Closed

datetime.utcnow() is deprecated: stop using it #2572

jku opened this issue Feb 26, 2024 · 1 comment · Fixed by #2573
Assignees
Labels
good first issue Bite-sized items for first time contributors

Comments

@jku
Copy link
Member

jku commented Feb 26, 2024

utcnow() reference docs:

Deprecated since version 3.12: Use datetime.now() with UTC instead.

We have 23 uses of utcnow() (mostly tests and examples): all seem straight forward to change to now() with utc argument

@jku jku added the good first issue Bite-sized items for first time contributors label Feb 26, 2024
@Mansur908
Copy link
Contributor

Hello @jku. Could you please assign this issue to me? Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Bite-sized items for first time contributors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants