agenda: print localized time for events

in before these were always formatted with the default locale

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
This commit is contained in:
Konrad Weihmann 2021-11-28 22:52:46 +01:00
parent 068c9a3ac8
commit 74892968ee

View File

@ -196,7 +196,7 @@ class Agenda(inkycal_module):
# Check if item is an event # Check if item is an event
if 'end' in _: if 'end' in _:
time = _['begin'].format(self.time_format) time = _['begin'].format(self.time_format, locale=self.language)
# Check if event is all day, if not, add the time # Check if event is all day, if not, add the time
if parser.all_day(_) == False: if parser.all_day(_) == False: