Fix Ical module when dealing with UTC event
This commit is contained in:
parent
07c9255040
commit
4fb1f7f08f
@ -367,7 +367,7 @@ class IcalModule:
|
||||
)
|
||||
elif "end" in evt and not isinstance(evt["end"], datetime):
|
||||
pass
|
||||
elif "end" in evt and (("new_start" in evt and now > evt["new_start"]) or ("new_start" not in evt and now > evt["start"])):
|
||||
elif "end" in evt and (("new_start" in evt and now > evt["new_start"].astimezone(pytz.timezone('Europe/Paris'))) or ("new_start" not in evt and now > evt["start"].astimezone(pytz.timezone('Europe/Paris')))):
|
||||
align += display_longtext(draw,
|
||||
(2 + fnt_R.getsize(evt["start"].astimezone(pytz.timezone('Europe/Paris')).strftime("%H:%M "))[0], align+line_height*0.6),
|
||||
"Fin à " + (evt["new_end"] if "new_end" in evt else evt["end"]).astimezone(pytz.timezone('Europe/Paris')).strftime("%H:%M"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user