mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
lots of visual and logic changes
This commit is contained in:
@@ -345,13 +345,11 @@ class BaseNCAABaseballManager:
|
||||
except pytz.exceptions.UnknownTimeZoneError:
|
||||
logger.warning(f"[NCAABaseball] Unknown timezone: {timezone_str}, falling back to UTC")
|
||||
tz = pytz.UTC
|
||||
|
||||
dt = datetime.fromisoformat(game_time.replace('Z', '+00:00'))
|
||||
if dt.tzinfo is None:
|
||||
dt = dt.replace(tzinfo=pytz.UTC)
|
||||
local_dt = dt.astimezone(tz)
|
||||
|
||||
return local_dt.strftime("%I:%M %p")
|
||||
return local_dt.strftime("%I:%M %p").lstrip('0')
|
||||
except Exception as e:
|
||||
logger.error(f"[NCAABaseball] Error formatting game time: {e}")
|
||||
return "TBD"
|
||||
|
||||
Reference in New Issue
Block a user