mirror of
https://github.com/stan220/flathub.git
synced 2026-09-08 17:28:57 +00:00
archive_eol: Change datetime.UTC to datetime.timezone.utc
This works on older Python versions and the first is an alias to the second
This commit is contained in:
@@ -85,7 +85,7 @@ def main() -> None:
|
||||
if not eols:
|
||||
return
|
||||
|
||||
earliest = datetime.datetime.now(datetime.UTC) - datetime.timedelta(weeks=60)
|
||||
earliest = datetime.datetime.now(datetime.timezone.utc) - datetime.timedelta(weeks=60)
|
||||
count = 0
|
||||
while count < len(eols):
|
||||
refname = eols[count]
|
||||
|
||||
Reference in New Issue
Block a user