Fix PHP warning

This commit is contained in:
Aleksander Machniak 2022-12-09 15:02:06 +01:00
parent 24e2e1ce84
commit d07938b662

View file

@ -1084,7 +1084,7 @@ class libcalendaring_vcalendar implements Iterator
// all-day events end the next day
if (!empty($event['allday']) && !empty($event['end'])) {
$event['end'] = clone $event['end'];
$event['end'] = self::toDateTime($event['end']);
$event['end']->add(new \DateInterval('P1D'));
$event['end']->_dateonly = true;
}