helpers: Fix issue with usage of pad_time_component

This commit is contained in:
PapaTutuWawa 2021-09-16 13:50:49 +02:00
parent 2f61c902eb
commit 914558a00c

View File

@ -37,7 +37,7 @@ def format_time(time_str):
except ValueError: except ValueError:
return time_str 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): def format_warning(warning):