mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
fix a wrong behavior of alarm timezones in caldav and icalendar when an alarm doesnt use utc. This change uses the same timezone from the start time.
........ Merged revisions 364163 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@364164 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -299,7 +299,7 @@ static void icalendar_add_event(icalcomponent *comp, struct icaltime_span *span,
|
||||
/* XXX Technically you can check RELATED to see if the event fires from the END of the event
|
||||
* But, I'm not sure I've ever seen anyone implement it in calendaring software, so I'm ignoring for now */
|
||||
tmp = icaltime_add(start, trigger.duration);
|
||||
event->alarm = icaltime_as_timet_with_zone(tmp, utc);
|
||||
event->alarm = icaltime_as_timet_with_zone(tmp, icaltime_get_timezone(start));
|
||||
}
|
||||
|
||||
ao2_link(pvt->events, event);
|
||||
|
Reference in New Issue
Block a user