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.datetime.utcnow() is deprecated #24

Open
gmankab opened this issue Aug 27, 2024 · 2 comments
Open

datetime.datetime.utcnow() is deprecated #24

gmankab opened this issue Aug 27, 2024 · 2 comments

Comments

@gmankab
Copy link

gmankab commented Aug 27, 2024

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

nah

@QuartzWarrior
Copy link

true, but datetime.UTC was added in python 3.11, which would be annoying for some people to upgrade to... might as well keep utcnow() until its gone in python 3.13 or whenever they remove it.

ps. its only depreciated if you use python 3.12, if you use a version below its not.

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

No branches or pull requests

3 participants