]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix a wrong behavior of alarm timezones in caldav and icalendar when an alarm doesnt...
authorStefan Schmidt <sst@sil.at>
Fri, 27 Apr 2012 12:54:19 +0000 (12:54 +0000)
committerStefan Schmidt <sst@sil.at>
Fri, 27 Apr 2012 12:54:19 +0000 (12:54 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@364163 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_calendar_caldav.c
res/res_calendar_icalendar.c

index 14fce0ca7ebe391730ddd73f3b590cd1aba2a263..f569b9eab34f8495cf328ae8a88a867bc8a2c130 100644 (file)
@@ -445,7 +445,7 @@ static void caldav_add_event(icalcomponent *comp, struct icaltime_span *span, vo
                /* 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);
index 8ef269e4f3733f74b4320c51340ff43de7105d82..61a400235397bd8e6a99ae035a055be5fd886ecb 100644 (file)
@@ -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);