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() deprecated in Python 3.12 #751

Open
petercoles opened this issue Apr 12, 2024 · 1 comment
Open

datetime.utcnow() deprecated in Python 3.12 #751

petercoles opened this issue Apr 12, 2024 · 1 comment

Comments

@petercoles
Copy link
Contributor

petercoles commented Apr 12, 2024

No solution proposed at this point (as it would need to be explicitly tested against older versions of Python).

This is just a marker that users will start to run into problems with Flumine's use of naive datetime objects at some time in an as yet unknown future version of Python.

@mzaja
Copy link
Contributor

mzaja commented May 22, 2024

datetime.datetime.utcnow() calls need to be replaced with datetime.datetime.now(datetime.timezone.utc). This is backwards compatible with Python 3.8, the earliest supported version: https://docs.python.org/3.8/library/datetime.html#datetime.datetime.utcnow

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

2 participants