-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[TECH DEBT] datetime.datetime.utcnow() is deprecated in Python 3.12 #65604
Labels
Milestone
Comments
This should be fairly trivial to fix from datetime import datetime, timezone Then, every occurrence of: datetime.utcnow() Should get replaced by: datetime.now(tz=timezone.utc) We'd love to get a PR addressing this 😁 |
abismor
added a commit
to abismor/salt
that referenced
this issue
Nov 24, 2023
…() with datetime.now(tz=timezone.utc) Update imports to accomodate this change Resolves issue saltstack#65604
abismor
added a commit
to abismor/salt
that referenced
this issue
Nov 24, 2023
…() with datetime.now(tz=timezone.utc) Update imports to accomodate this change Resolves issue saltstack#65604
3 tasks
Is this open? |
3 tasks
vorenhoutgithub
added a commit
to vorenhoutgithub/Plugwise-2-py
that referenced
this issue
Apr 28, 2024
marmarek
added a commit
to marmarek/qubes-salt
that referenced
this issue
Aug 16, 2024
marmarek
added a commit
to marmarek/qubes-salt
that referenced
this issue
Aug 17, 2024
marmarek
added a commit
to marmarek/salt
that referenced
this issue
Sep 18, 2024
datetime.datetime.utcnow() is deprecated in Python 3.12, and it's recommended to switch to timezone-aware objects, so do this. It also simplifies local time handling, as .astimezone() method can be used instead of calculating timezone_delta manually. Part of saltstack#65604
marmarek
added a commit
to marmarek/salt
that referenced
this issue
Sep 18, 2024
datetime.datetime.utcnow() is deprecated in Python 3.12, and it's recommended to switch to timezone-aware objects, so do this. It also simplifies local time handling, as .astimezone() method can be used instead of calculating timezone_delta manually. Part of saltstack#65604
marmarek
added a commit
to marmarek/salt
that referenced
this issue
Sep 18, 2024
datetime.datetime.utcnow() is deprecated in Python 3.12, and it's recommended to switch to timezone-aware objects, so do this. It also simplifies local time handling, as .astimezone() method can be used instead of calculating timezone_delta manually. Part of saltstack#65604
marmarek
added a commit
to marmarek/salt
that referenced
this issue
Sep 18, 2024
datetime.datetime.utcnow() is deprecated in Python 3.12, and it's recommended to switch to timezone-aware objects, so do this. It also simplifies local time handling, as .astimezone() method can be used instead of calculating timezone_delta manually. Part of saltstack#65604
marmarek
added a commit
to marmarek/salt
that referenced
this issue
Sep 18, 2024
datetime.datetime.utcnow() is deprecated in Python 3.12, and it's recommended to switch to timezone-aware objects, so do this. It also simplifies local time handling, as .astimezone() method can be used instead of calculating timezone_delta manually. Part of saltstack#65604
marmarek
added a commit
to marmarek/salt
that referenced
this issue
Sep 19, 2024
datetime.datetime.utcnow() is deprecated in Python 3.12, and it's recommended to switch to timezone-aware objects, so do this. It also simplifies local time handling, as .astimezone() method can be used instead of calculating timezone_delta manually. Part of saltstack#65604
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the tech debt to be addressed, include links and screenshots
Using
salt-ssh
results in the following warning:Versions Report
(Provided by running
salt --versions-report
. Please also mention any differences in master/minion versions.)This is
salt-ssh
called from/to Fedora 39The text was updated successfully, but these errors were encountered: