mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 05:13:01 +00:00
update UTC timezone logic to check config settings for all managers
This commit is contained in:
@@ -31,7 +31,7 @@ class Clock:
|
||||
|
||||
def _get_timezone(self) -> pytz.timezone:
|
||||
"""Get timezone from the config file."""
|
||||
config_timezone = self.config_manager.get_timezone()
|
||||
config_timezone = self.config.get('timezone', 'UTC')
|
||||
try:
|
||||
return pytz.timezone(config_timezone)
|
||||
except pytz.exceptions.UnknownTimeZoneError:
|
||||
|
||||
Reference in New Issue
Block a user