diff --git a/internal_filesystem/lib/mpos/time.py b/internal_filesystem/lib/mpos/time.py index 6b385b2e..4afa51a9 100644 --- a/internal_filesystem/lib/mpos/time.py +++ b/internal_filesystem/lib/mpos/time.py @@ -40,7 +40,12 @@ def localtime(): refresh_timezone_preference() ptz = timezone_to_posix_time_zone(timezone_preference) t = time.time() - return localPTZtime.tztime(t, ptz) + try: + localtime = localPTZtime.tztime(t, ptz) + except Exception as e: + #print(f"localPTZtime setting got exception {e}, defaulting to non-localized time...") # this gets called too often to print + return time.localtime() + return localtime def timezone_to_posix_time_zone(timezone): """ diff --git a/internal_filesystem/lib/mpos/timezones.py b/internal_filesystem/lib/mpos/timezones.py index 46fd4f73..27b10716 100644 --- a/internal_filesystem/lib/mpos/timezones.py +++ b/internal_filesystem/lib/mpos/timezones.py @@ -137,7 +137,7 @@ TIMEZONE_MAP = { "Europe/Athens": "EET-2EEST,M3.5.0/3,M10.5.0/4", # Greece’s capital "Europe/Belgrade": "CET-1CEST,M3.5.0,M10.5.0/3", # Serbia’s capital "Europe/Berlin": "CET-1CEST,M3.5.0,M10.5.0/3", # Germany’s capital - "Europe/Brussels": "CET-/cat,1CEST,M3.5.0,M10.5.0/3", # Belgium’s capital + "Europe/Brussels": "CET-1CEST,M3.5.0,M10.5.0/3", # Belgium’s capital "Europe/Bucharest": "EET-2EEST,M3.5.0/3,M10.5.0/4", # Romania’s capital "Europe/Budapest": "CET-1CEST,M3.5.0,M10.5.0/3", # Hungary’s capital "Europe/Copenhagen": "CET-1CEST,M3.5.0,M10.5.0/3", # Denmark’s capital