From: Sean Bright Date: Thu, 17 Aug 2017 17:00:09 +0000 (-0400) Subject: res_calendar_icalendar: Properly handle recurring events X-Git-Tag: 13.18.0-rc1~88^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6251ec3733a846cf6fb34fe53421c29d3f8cb3e;p=thirdparty%2Fasterisk.git res_calendar_icalendar: Properly handle recurring events When looking for recurring events, use the correct end time based on the configured 'timeframe.' ASTERISK-27174 #close Reported by: Mark Thompson Change-Id: Id90c3cfc79d561a5521d79be176683e225f2edef --- diff --git a/res/res_calendar_icalendar.c b/res/res_calendar_icalendar.c index 8ac905174d..a6ce627088 100644 --- a/res/res_calendar_icalendar.c +++ b/res/res_calendar_icalendar.c @@ -335,7 +335,7 @@ static void icalendar_add_event(icalcomponent *comp, struct icaltime_span *span, start_time = icaltime_current_time_with_zone(icaltimezone_get_utc_timezone()); end_time = icaltime_current_time_with_zone(icaltimezone_get_utc_timezone()); end_time.second += pvt->owner->timeframe * 60; - icaltime_normalize(end_time); + end_time = icaltime_normalize(end_time); for (iter = icalcomponent_get_first_component(pvt->data, ICAL_VEVENT_COMPONENT); iter;