Commit 20974d6c authored by erdnaxe's avatar erdnaxe 🎇

DAYLIGHT and STANDARD should always be in a VTIMEZONE

parent 9a0fd689
......@@ -50,7 +50,8 @@ def write_calendar_from_dav(f, dav_components, selected_groups):
print('Traitement de {}/{}\r'.format(i, len(dav_components)), end='')
dav_component.load() # Download CalDav component
ical = icalendar.Event.from_ical(dav_component.data) # Parse ical
ical_components = [c for c in ical.walk() if c.name != 'VCALENDAR']
blacklist = ['VCALENDAR', 'DAYLIGHT', 'STANDARD']
ical_components = [c for c in ical.walk() if c.name not in blacklist]
for ical_component in ical_components:
if ical_component.name == "VEVENT":
# If it is an event, then check it is in the correct group
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment