Files
oslo.utils/oslo_utils/tests/test_timeutils.py
Rodolfo Alonso Hernandez 59f3a0dba2 Python-3.12: do not use datetime.datetime.utcnow()
This is deprecated in the favor of:
  datetime.datetime.now(datetime.timezone.utc)

In order to return a ``datetime.datetime`` object without the TZ
zone defined, the ``tzinfo`` member is deleted. That allows the
addition/substraction from offset-naive ``datetime.datetime`` objects.

Change-Id: Id345167e71bf576ec383b9d700f222343b08b249
2023-12-18 14:47:13 +00:00

21 KiB