From 33e273f0f435542471c797e630f7c8baa8027cae Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 11 Aug 2011 08:41:54 +0000 Subject: [PATCH] fixed Warning: DateTime::modify(): Failed to parse time string (1234.5 second) at position 7 (s): The timezone could not be found in the database, caused by second fraction --- 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 f2c811bd39..4e3c753ead 100644 --- a/calendar/inc/class.calendar_ical.inc.php +++ b/calendar/inc/class.calendar_ical.inc.php @@ -629,7 +629,7 @@ class calendar_ical extends calendar_boupdate else { $length = ($event['end'] - $event['start']) / 2; - $rrule['UNTIL']->modify($length . ' second'); + $rrule['UNTIL']->modify((int)$length . ' second'); } if (!$tzid || $version != '1.0')