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 in Python 3.12 #110

Open
DrGFreeman opened this issue Dec 12, 2024 · 1 comment
Open

datetime.utcnow() is deprecated in Python 3.12 #110

DrGFreeman opened this issue Dec 12, 2024 · 1 comment

Comments

@DrGFreeman
Copy link

When running in Python 3.12 and above, the following warning is issued:

.../site-packages/json_logging/__init__.py:247: DeprecationWarning: datetime
is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.
    utcnow = datetime.utcnow()

Ref. https://docs.python.org/3.12/library/datetime.html#datetime.datetime.utcnow

@DrGFreeman
Copy link
Author

Looks like #107 addresses this issue.

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

1 participant