Skip to content

Commit 51a6a7a

Browse files
committed
Reinstate Python 3.10 support, it's the server version
1 parent d515452 commit 51a6a7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def main() -> None:
156156
# Read it
157157
src = Template(infile.read())
158158

159-
now = dt.datetime.now(dt.UTC).replace(tzinfo=None)
159+
now = dt.datetime.utcnow()
160160
for version in args.version:
161161
# Document data
162162
print(version)

utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def remove_irrelevant_packages(packages, limit):
218218

219219

220220
def save_to_file(packages, file_name):
221-
now = dt.datetime.now(ZoneInfo("UTC"))
221+
now = dt.datetime.utcnow().replace(tzinfo=ZoneInfo("UTC"))
222222
with open(file_name, "w") as f:
223223
f.write(
224224
json.dumps(

0 commit comments

Comments
 (0)