summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-12-01 10:36:04 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2023-12-01 13:44:08 +0100
commit24baee337038af93e8abe754aad2d47d5ddc263c (patch)
treefe3295c2438b7060eac8c82c8d3a38a9cf53f0c9 /.github
parentcore: do not drop CAP_SETUID if it is in AmbientCapabilities= (diff)
downloadsystemd-24baee337038af93e8abe754aad2d47d5ddc263c.tar.xz
systemd-24baee337038af93e8abe754aad2d47d5ddc263c.zip
ukify: avoid deprecated datetime call
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). The difference between the two is that .now(datetime.UTC) returns an object with a timezone attached, "the numbers" are the same. >>> datetime.datetime.utcnow(), datetime.datetime.now(datetime.UTC) (datetime.datetime(2023, 12, 1, 9, 37, 53, 891669), datetime.datetime(2023, 12, 1, 9, 37, 53, 891688, tzinfo=datetime.timezone.utc)) This value is fed to cryptography's x509.CertificateBuilder object, so as long as it can accept a datetime object with tzinfo, the result should be identical.
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions