update UTC timezone logic to check config settings for all managers

This commit is contained in:
ChuckBuilds
2025-09-04 22:18:01 -04:00
parent 92071237c1
commit 8a0fdb005d
21 changed files with 1037 additions and 8 deletions

View File

@@ -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: