diff options
author | Philipp Hörist <philipp@hoerist.com> | 2023-11-26 16:08:32 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2023-11-26 16:08:32 +0300 |
commit | 1b318b73e2728dc8160c7db95a81b3dce61a6642 (patch) | |
tree | fb88d5d35597a02589482b281efc3a8d4966caaa | |
parent | 0683f7f2e6f53d16c3700952102c446956eb4a92 (diff) |
refactor: Scripts: Remove usage of deprecated datetime method
-rwxr-xr-x | scripts/get_iana_data.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/get_iana_data.py b/scripts/get_iana_data.py index 4cdfc3434..03fccff73 100755 --- a/scripts/get_iana_data.py +++ b/scripts/get_iana_data.py @@ -10,6 +10,7 @@ import operator import re import sys from datetime import datetime +from datetime import timezone from pathlib import Path from urllib.request import urlopen @@ -126,7 +127,7 @@ def generate_output( outpath: Path) -> None: logging.info('Generate output') - current_date = datetime.utcnow().isoformat() + current_date = datetime.now(tz=timezone.utc).isoformat() content = BOILER_PLATE.format(current_date=current_date) content += 'ZONE_DATA = {\n' |