Fix recurrence enddate for vCalendar 1.0

This commit is contained in:
Jörg Lehrke 2010-06-11 12:16:58 +00:00
parent d8983b6cd1
commit 65e7054869

View File

@ -623,7 +623,7 @@ class calendar_ical extends calendar_boupdate
$rrule = $rriter->generate_rrule($version);
if ($version == '1.0')
{
if ($event['recur_enddate'])
if ($event['recur_enddate'] && $tzid)
{
$rrule['UNTIL'] = self::getDateTime($event['recur_enddate'],$tzid);
}