Philipp Hörist pushed to branch master at gajim / gajim
Commits:
1b318b73 by Philipp Hörist at 2023-11-26T14:08:32+01:00
refactor: Scripts: Remove usage of deprecated datetime method
- - - - -
1 changed file:
- scripts/get_iana_data.py
Changes:
=====================================
scripts/get_iana_data.py
=====================================
@@ -10,6 +10,7 @@
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'
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/1b318b73e2728dc8160c7db95a81b3dce61a6642
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/1b318b73e2728dc8160c7db95a81b3dce61a6642
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]