We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b92b2f4 + ca24d8b commit 45f1704Copy full SHA for 45f1704
Matrix_Portal_S3_ESPN_API/CircuitPython/code.py
@@ -174,6 +174,7 @@ def convert_date_format(date, tz_information):
174
# Convert 24-hour format to 12-hour format and determine AM/PM
175
am_pm = "AM" if hour < 12 else "PM"
176
hour_12 = hour if hour <= 12 else hour - 12
177
+ minute = f"{minute:02}"
178
# Determine the timezone abbreviation based on the offset
179
time_zone_str = tz_information[1]
180
return f"{month}/{day} - {hour_12}:{minute} {am_pm} {time_zone_str}"
0 commit comments