mirror of
https://github.com/systemd/systemd.git
synced 2025-03-06 00:58:29 +03:00
ukify: use datetime.timezone.utc instead of datetime.UTC
For compat with older Python versions, since datetime.UTC is an alias introduced in Python 3.11.
This commit is contained in:
parent
ee23a85561
commit
a165918491
@ -871,7 +871,7 @@ def generate_key_cert_pair(
|
||||
# supported/expected:
|
||||
# https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-secure-boot-key-creation-and-management-guidance?view=windows-11#12-public-key-cryptography
|
||||
|
||||
now = datetime.datetime.now(datetime.UTC)
|
||||
now = datetime.datetime.now(datetime.timezone.utc)
|
||||
|
||||
key = rsa.generate_private_key(
|
||||
public_exponent=65537,
|
||||
|
Loading…
x
Reference in New Issue
Block a user