From 97d6046e30ec358483309915752dfc770bb5fdd6 Mon Sep 17 00:00:00 2001 From: emilyboda Date: Thu, 4 Jun 2020 15:39:47 -0400 Subject: [PATCH] forecasted times are now in 12 hr format when requested Previously showed only 24 hr time, no matter what was requested. I edited it so that when hours = "12", the time format will be 12 hr time format. --- modules/inkycal_weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/inkycal_weather.py b/modules/inkycal_weather.py index 6e361cf..3369dfc 100644 --- a/modules/inkycal_weather.py +++ b/modules/inkycal_weather.py @@ -143,7 +143,7 @@ def to_hours(datetime_object, simple = False): converted_time = datetime_object.format('HH:mm') else: if simple == True: - converted_time = datetime_object.format('H a') + converted_time = datetime_object.format('h a') else: converted_time = datetime_object.format('hh:mm') return str(converted_time)