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.
1 parent 3886113 commit 135648bCopy full SHA for 135648b
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 = minute if minute >= 10 else f"0{minute}"
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