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

Deprecation warnings about datetime.utcnow and datetime.utcfromtimestamp #609

Closed
decaz opened this issue Dec 28, 2023 · 0 comments · Fixed by #610
Closed

Deprecation warnings about datetime.utcnow and datetime.utcfromtimestamp #609

decaz opened this issue Dec 28, 2023 · 0 comments · Fixed by #610

Comments

@decaz
Copy link
Collaborator

decaz commented Dec 28, 2023

Method datetime.utcnow is deprecated since version 3.12:

DeprecationWarning: datetime.datetime.utcnow() 
is deprecated and scheduled for removal in a future version. 
Instead, Use timezone-aware objects to represent datetimes in UTC: 
datetime.datetime.now(datetime.UTC).

Method datetime.utcfromtimestamp is deprecated since version 3.12:

DeprecationWarning: datetime.datetime.utcfromtimestamp() 
is deprecated and scheduled for removal in a future version. 
Use timezone-aware objects to represent datetimes in UTC: 
datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
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 a pull request may close this issue.

1 participant