Skip to content

Commit

Permalink
Merge pull request #2624 from adafruit/sportball
Browse files Browse the repository at this point in the history
minor bug fix
  • Loading branch information
TheKitty authored Sep 15, 2023
2 parents b92b2f4 + ca24d8b commit 45f1704
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Matrix_Portal_S3_ESPN_API/CircuitPython/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def convert_date_format(date, tz_information):
# Convert 24-hour format to 12-hour format and determine AM/PM
am_pm = "AM" if hour < 12 else "PM"
hour_12 = hour if hour <= 12 else hour - 12
minute = f"{minute:02}"
# Determine the timezone abbreviation based on the offset
time_zone_str = tz_information[1]
return f"{month}/{day} - {hour_12}:{minute} {am_pm} {time_zone_str}"
Expand Down

0 comments on commit 45f1704

Please sign in to comment.