From d6b7649cb44849b5200ccbd0da9f1a4406451658 Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Sun, 11 Feb 2024 19:34:38 +0300 Subject: [PATCH] review fix for python <3.11 --- tools/format_tzdata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/format_tzdata.py b/tools/format_tzdata.py index 5269bd8518..4f26f34839 100755 --- a/tools/format_tzdata.py +++ b/tools/format_tzdata.py @@ -126,8 +126,8 @@ def markdown(zones): def header(zones): - print(f"// ! ! ! DO NOT EDIT, AUTOMATICALLY GENERATED ! ! !") - print(f"// File created {datetime.datetime.now(tz=datetime.UTC)}") + print("// ! ! ! DO NOT EDIT, AUTOMATICALLY GENERATED ! ! !") + print(f"// File created {datetime.datetime.now(tz=datetime.timezone.utc)}") print(f"// Based on IANA database {tzdata.IANA_VERSION}") print(f"// Re-run /tools/{sys.argv[0]} to update") print()