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 63e0157baf
commit 8e13f3977f
2 changed files with 1 additions and 3 deletions

View File

@ -895,8 +895,6 @@ class calendar_bo
}
}
if (!$start) $start = $event['start'];
$start_obj = new Api\DateTime($start);
$read_start = new Api\DateTime($event_read['start']);
$events = array();
$this->insert_all_recurrences($event,$start,$this->date2usertime($this->config['horizont']),$events);

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