DeprecationWarning: datetime.datetime.utcnow()

Updating Qubes release 4.2.0-rc5 in terminal with command sudo qubesctl --show-output --skip-dom0 --templates state.sls update.qubes-vm gives thid deprecation warning for all template vm´s:
/usr/lib/python3.12/site-packages/salt/utils/jid.py:19: 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).
return datetime.datetime.utcnow()
Though everything seems to work normally, the clock is OK.
(sys-net is on fedora-39)
Nothing to worry about?

1 Like

It seems to be about salt using a way to get time that won’t be possible in the future versions of the Python language. So I think, right now there is nothing to worry about, it’s a warning for the devs more than the users.

1 Like

That is correct: deprecation warnings are warnings (not errors) and are intended to give a heads up to developers about future changes.

Nothing to worry about as a end-user. :slightly_smiling_face: