python 3.12 deprecated utcnow and utcfromtimestamp

Bug #2046355 reported by Boris Bobrov
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
New
Undecided
Unassigned

Bug Description

In python 3.12 utcnow and utcfromtimestamp have been deprecated: https://github.com/python/cpython/issues/103857 . Keystone uses them extensively:

$ grep -ro "utcnow" . | wc -l | xargs echo "Total matches :"
Total matches : 195

$ grep -ro "utcfromtimestamp" . | wc -l | xargs echo "Total matches :"
Total matches : 12

Revision history for this message
Christian Rohmann (christian-rohmann) wrote :

There is / was https://review.opendev.org/c/openstack/keystone/+/906312, unfortunately that was not linked to the bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.