diff --git a/calendar/inc/class.calendar_so.inc.php b/calendar/inc/class.calendar_so.inc.php index c38081cd7c..fb9fc494e6 100644 --- a/calendar/inc/class.calendar_so.inc.php +++ b/calendar/inc/class.calendar_so.inc.php @@ -1663,6 +1663,10 @@ ORDER BY cal_user_type, cal_usre_id // check if recurrence enddate was adjusted if(isset($event['recur_enddate'])) { + if (is_object($event['recur_enddate'])) + { + $event['recur_enddate'] = Api\DateTime::user2server($event['recur_enddate'], 'ts'); + } // recurrences need to be truncated if((int)$event['recur_enddate'] > 0 && ((int)$old_repeats['recur_enddate'] == 0 || (int)$old_repeats['recur_enddate'] > (int)$event['recur_enddate'])