Skip to content

Commit 45f1704

Browse files
authored
Merge pull request #2624 from adafruit/sportball
minor bug fix
2 parents b92b2f4 + ca24d8b commit 45f1704

File tree

1 file changed

+1
-0
lines changed
  • Matrix_Portal_S3_ESPN_API/CircuitPython

1 file changed

+1
-0
lines changed

Matrix_Portal_S3_ESPN_API/CircuitPython/code.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ def convert_date_format(date, tz_information):
174174
# Convert 24-hour format to 12-hour format and determine AM/PM
175175
am_pm = "AM" if hour < 12 else "PM"
176176
hour_12 = hour if hour <= 12 else hour - 12
177+
minute = f"{minute:02}"
177178
# Determine the timezone abbreviation based on the offset
178179
time_zone_str = tz_information[1]
179180
return f"{month}/{day} - {hour_12}:{minute} {am_pm} {time_zone_str}"

0 commit comments

Comments
 (0)