helpers: Fix issue with usage of pad_time_component

This commit is contained in:
PapaTutuWawa committed 2021-09-16 13:50:49 +02:00
1 parent 2f61c902eb
commit 914558a00c
1 file changed
+1 -1
+1 -1
View File
@@ -37,7 +37,7 @@ def format_time(time_str):
except ValueError:
return time_str
return f"{date.day}.{date.month}.{date.year} {pad_time_component(date.hour)}:{pad_time_component(date.minute)}"
return f"{date.day}.{date.month}.{date.year} {pad_time_component(str(date.hour))}:{pad_time_component(str(date.minute))}"
def format_warning(warning):