Merge "Remove deprecated datetime.utcnow()"

This commit is contained in:
Zuul 2025-04-27 13:29:18 +00:00 committed by Gerrit Code Review
commit afe765240d

View File

@ -62,7 +62,7 @@ def main():
if skip_line(line):
continue
now = datetime.datetime.utcnow()
now = datetime.datetime.now(datetime.timezone.utc)
ts_line = ("%s | %s" % (
now.strftime("%Y-%m-%d %H:%M:%S.%f")[:-3],
line))