ical: Don't display an event before it's official start date

This commit is contained in:
nemunaire 2023-05-13 13:14:12 +02:00
parent e3d2611589
commit b77f1cd0d0

View File

@ -94,6 +94,8 @@ class IcalModule:
else: else:
exclusions.append(exdates.dts[0].dt) exclusions.append(exdates.dts[0].dt)
while start < component.decoded("DTSTART"):
start += timedelta(days=7)
while start in exclusions: while start in exclusions:
start += timedelta(days=7) start += timedelta(days=7)