Fix recurrence enddate issue

This commit is contained in:
Jörg Lehrke 2010-08-15 06:34:16 +00:00
parent 70e0947517
commit d4985709c5

View File

@ -2938,8 +2938,8 @@ class calendar_ical extends calendar_boupdate
$last = clone $rriter->current; $last = clone $rriter->current;
$rriter->next_no_exception(); $rriter->next_no_exception();
} }
$delta = $event['end'] - $event['start']; //$delta = $event['end'] - $event['start'];
$last->modify('+' . $delta . ' seconds'); //$last->modify('+' . $delta . ' seconds');
$last->setTime(0, 0, 0); $last->setTime(0, 0, 0);
$event['recur_enddate'] = egw_time::to($last, 'server'); $event['recur_enddate'] = egw_time::to($last, 'server');
} }