Calendar - Fix daily recurring recur end date got one day later when you save if timezone was Tahiti

This commit is contained in:
nathangray 2017-05-11 11:14:55 -06:00
parent d6bfd0aab2
commit fceaabadd1

View File

@ -1182,7 +1182,7 @@ class calendar_boupdate extends calendar_bo
// set recur-enddate/range-end to real end-date of last recurrence
if ($event['recur_type'] != MCAL_RECUR_NONE && $event['recur_enddate'])
{
$rrule = calendar_rrule::event2rrule($event, false);
$rrule = calendar_rrule::event2rrule($event);
$rrule->rewind();
$enddate = $rrule->current();
do