Skip to content

Commit cac347d

Browse files
committed
BUG: dates have been converted to UTC already, don’t inherit tz
1 parent 755e5fe commit cac347d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

yaml2ics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ def event_from_yaml(event_yaml: dict, tz: datetime.tzinfo = None) -> ics.Event:
123123

124124
if "except_on" in repeat:
125125
exdates = [datetime2utc(rdate) for rdate in repeat["except_on"]]
126-
add_recurrence_property(event, "EXDATE", exdates, tz)
126+
add_recurrence_property(event, "EXDATE", exdates)
127127

128128
if "also_on" in repeat:
129129
rdates = [datetime2utc(rdate) for rdate in repeat["also_on"]]
130-
add_recurrence_property(event, "RDATE", rdates, tz)
130+
add_recurrence_property(event, "RDATE", rdates)
131131

132132
event.dtstamp = utcnow()
133133
if tz and event.floating and not event.all_day:

0 commit comments

Comments
 (0)