From 94423bfa3e602fce65f06b849362d601d04c6eb8 Mon Sep 17 00:00:00 2001 From: Ace Date: Sat, 20 Jun 2020 19:11:19 +0200 Subject: [PATCH] Fix issue for units = 'metric' + hours = '12' --- 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 6918309..5f5d974 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)