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

@@ -79,7 +79,8 @@ class BaseNBAManager:
def _get_timezone(self):
try:
return pytz.timezone(self.config_manager.get_timezone())
timezone_str = self.config.get('timezone', 'UTC')
return pytz.timezone(timezone_str)
except pytz.UnknownTimeZoneError:
return pytz.utc