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

Retire/update the datetime.utcnow() function #4240

Closed
shuchu opened this issue May 30, 2024 · 1 comment · Fixed by #4306, #4307 or #4352
Closed

Retire/update the datetime.utcnow() function #4240

shuchu opened this issue May 30, 2024 · 1 comment · Fixed by #4306, #4307 or #4352

Comments

@shuchu
Copy link
Collaborator

shuchu commented May 30, 2024

Expected Behavior

Current Behavior

Steps to reproduce

Specifications

Based on the Release Note of Python3.12

datetime: 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 gh-103857.)

  • Version: 0.38
  • Platform:
  • Subsystem:

Possible Solution

@shuchu
Copy link
Collaborator Author

shuchu commented Jul 13, 2024

I need to reopen this for deprecating the utcnow()

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