fix: Use _format_game_time method for consistent timezone handling in MLB display

This commit is contained in:
ChuckBuilds
2025-04-25 11:15:17 -05:00
parent 40ab8b761f
commit c8f6f724db

View File

@@ -157,7 +157,7 @@ class BaseMLBManager:
game_time = game_time.replace(tzinfo=pytz.UTC)
local_time = game_time.astimezone(tz)
game_date = local_time.strftime("%b %d") # e.g., "Apr 24"
game_time_str = local_time.strftime("%I:%M %p") # e.g., "07:30 PM"
game_time_str = self._format_game_time(game_data['start_time']) # Use the existing method
# Draw date in center using PressStart2P
date_bbox = draw.textbbox((0, 0), game_date, font=self.display_manager.font)