From 6b8f8c64730aa04130802d89c3b05155a6046b30 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 5 Nov 2021 14:58:38 +0100 Subject: [PATCH] fix PHP 8.0 TypeError: Unsupported operand types: EGroupware\Api\DateTime - int --- calendar/inc/class.calendar_ical.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_ical.inc.php b/calendar/inc/class.calendar_ical.inc.php index 7ff64226c3..c026b4ffc0 100644 --- a/calendar/inc/class.calendar_ical.inc.php +++ b/calendar/inc/class.calendar_ical.inc.php @@ -928,7 +928,7 @@ class calendar_ical extends calendar_boupdate if ($alarmData['offset']) { - $alarmData['time'] = $event['start'] - $alarmData['offset']; + $alarmData['time'] = Api\DateTime::to($event['start'], 'ts') - $alarmData['offset']; } $description = trim(preg_replace("/\r?\n?\\[[A-Z_]+:.*\\]/i", '', $event['description']));