]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
pybind/rbd: change to return "aware" datetime objects
authorIlya Dryomov <idryomov@gmail.com>
Mon, 24 Jun 2024 13:25:11 +0000 (15:25 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 25 Jun 2024 15:31:04 +0000 (17:31 +0200)
commitc31d307c270c37b486d1c03c83fa843dc97b2d44
tree72cb23b3aed6f1d40f8505b51a7d43af05cbfdc4
parent28776437a45263a57fda6d0f4f16bf7981890367
pybind/rbd: change to return "aware" datetime objects

utcfromtimestamp() and utcnow() have been deprecated in Python 3.12.
Let's follow suit because it turns out that many datetime methods in
Python 3 interpret "naive" objects that we are currently returning as
local times.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
PendingReleaseNotes
src/pybind/rbd/rbd.pyx
src/test/pybind/test_rbd.py