lots of visual and logic changes

This commit is contained in:
Chuck
2025-07-21 15:22:12 -05:00
parent d3ab27b221
commit 94f0eb060b
10 changed files with 12 additions and 18 deletions

View File

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