diff --git a/app.py b/app.py index 62da552..4813cd0 100644 --- a/app.py +++ b/app.py @@ -40,8 +40,9 @@ def hello(): for k, v in cal.items(): other.add(k, v) - # Copy the VTIMEZONE component - other.add_component(cal.walk('VTIMEZONE')[0]) + # Copy VTIMEZONE components + for ev in cal.walk('VTIMEZONE'): + other.add_component(ev) # Filter and copy VEVENTs for ev in cal.walk('VEVENT'):