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 usage of datetime.utcnow and datetime.utcfromtimestamp #92

Merged
merged 1 commit into from
May 7, 2024

Conversation

cmyui
Copy link
Member

@cmyui cmyui commented May 7, 2024

datetime.datetime’s utcnow() and utcfromtimestamp() are deprecated and will be removed in a future version. Instead, use timezone-aware objects to represent datetimes in UTC: respectively, call now() and fromtimestamp() with the tz parameter set to datetime.UTC. (Contributed by Paul Ganssle in python/cpython#103857.)

@cmyui cmyui self-assigned this May 7, 2024
@cmyui cmyui merged commit d801d0e into master May 7, 2024
1 check passed
@cmyui cmyui deleted the update-deprecated-datetime-syntax branch May 7, 2024 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants