diff --git a/src/nhl_managers.py b/src/nhl_managers.py index 4e513ce1..ca9a1ead 100644 --- a/src/nhl_managers.py +++ b/src/nhl_managers.py @@ -142,6 +142,15 @@ class BaseNHLManager: home_team = next(c for c in competitors if c.get("homeAway") == "home") away_team = next(c for c in competitors if c.get("homeAway") == "away") + # Format game time and date for display + game_time = "" + game_date = "" + if start_time_utc: + # Convert to local time + local_time = start_time_utc.astimezone() + game_time = local_time.strftime("%I:%M %p") + game_date = local_time.strftime("%b %d") + details = { "start_time_utc": start_time_utc, "status_text": status["type"]["shortDetail"],