treeviz flatdata experiment + better invalid TZ handling

This commit is contained in:
jokob-sk
2025-02-08 07:52:13 +11:00
parent c855d50999
commit 5779fd34c5
25 changed files with 4730 additions and 827 deletions

View File

@@ -1,5 +1,5 @@
from time import strftime
import pytz
import pytz, all_timezones
import sys
import re
import base64
@@ -35,6 +35,8 @@ def read_config_file():
configFile = read_config_file()
timeZoneSetting = configFile['TIMEZONE']
if timeZoneSetting not in all_timezones:
timeZoneSetting = const.default_tz
timeZone = pytz.timezone(timeZoneSetting)
# -------------------------------------------------------------------