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

This commit is contained in:
nathangray 2017-04-20 12:57:04 -06:00
parent 848535874e
commit 676974fcdd

View File

@ -759,7 +759,8 @@ class calendar_rrule implements Iterator
if ($event['recur_enddate'])
{
$enddate = is_a($event['recur_enddate'],'DateTime') ? $event['recur_enddate'] : new Api\DateTime($event['recur_enddate'],$timestamp_tz);
$enddate = is_a($event['recur_enddate'],'DateTime') ? $event['recur_enddate'] : new Api\DateTime($event['recur_enddate'],self::$tz_cache[$to_tz]);
$enddate->setTime(23,59,59);
}
if (is_array($event['recur_exception']))
{