Change recurrence end date comparison to handle up to 1 second difference, for mix of old and new events

see 2f534beb34
This commit is contained in:
nathangray 2017-08-17 13:53:18 -06:00
parent 44710a4183
commit 1d6fcf3f68

View File

@ -1360,7 +1360,7 @@ class calendar_boupdate extends calendar_bo
$event['created'] = $this->now;
$event['creator'] = $this->user;
}
$set_recurrences = $old_event ? $event['recur_enddate'] != $old_event['recur_enddate']+1 : false;
$set_recurrences = $old_event ? abs($event['recur_enddate'] - $old_event['recur_enddate']) > 1 : false;
$set_recurrences_start = 0;
if (($cal_id = $this->so->save($event,$set_recurrences,$set_recurrences_start,0,$event['etag'])) && $set_recurrences && $event['recur_type'] != MCAL_RECUR_NONE)
{