[asterisk-commits] res calendar icalendar: Properly handle recurring events (asterisk[14])

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Aug 22 05:11:19 CDT 2017


Joshua Colp has submitted this change and it was merged. ( https://gerrit.asterisk.org/6243 )

Change subject: res_calendar_icalendar: Properly handle recurring events
......................................................................

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
---
M res/res_calendar_icalendar.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Kevin Harwell: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved; Approved for Submit



diff --git a/res/res_calendar_icalendar.c b/res/res_calendar_icalendar.c
index 507f19c..c465bf1 100644
--- a/res/res_calendar_icalendar.c
+++ b/res/res_calendar_icalendar.c
@@ -335,7 +335,7 @@
 	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;

-- 
To view, visit https://gerrit.asterisk.org/6243
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-MessageType: merged
Gerrit-Change-Id: Id90c3cfc79d561a5521d79be176683e225f2edef
Gerrit-Change-Number: 6243
Gerrit-PatchSet: 2
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-commits/attachments/20170822/d15bce35/attachment-0001.html>


More information about the asterisk-commits mailing list