Closed sethdeckard closed 7 years ago
iCal parsing is only handling the last rule processed, example:
schedule = IceCube::Schedule.new schedule.add_recurrence_rule IceCube::Rule.weekly.day(:monday, :tuesday) schedule.add_recurrence_rule IceCube::Rule.weekly(2).day(:friday) cal = schedule.to_ical => "DTSTART;TZID=CDT:20151005T195541\nRRULE:FREQ=WEEKLY;BYDAY=MO,TU\nRRULE:FREQ=WEEKLY;INTERVAL=2;WKST=SU;BYDAY=FR" parsed = IceCube::Schedule.from_ical(cal) parsed.recurrence_rules.size => 1 cal2 = parsed.to_ical => "DTSTART;TZID=CDT:20151005T195541\nRRULE:FREQ=WEEKLY;INTERVAL=2;WKST=SU;BYDAY=FR"
:+1: just jumped into this issue
:+1:
I have this https://github.com/seejohnrun/ice_cube/pull/308 for your consideration.
iCal parsing is only handling the last rule processed, example: