Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2023-11-26 16:08:32 +0300
committerPhilipp Hörist <philipp@hoerist.com>2023-11-26 16:08:32 +0300
commit1b318b73e2728dc8160c7db95a81b3dce61a6642 (patch)
treefb88d5d35597a02589482b281efc3a8d4966caaa
parent0683f7f2e6f53d16c3700952102c446956eb4a92 (diff)
refactor: Scripts: Remove usage of deprecated datetime method
-rwxr-xr-xscripts/get_iana_data.py3
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'