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

This commit is contained in:
Ralf Becker 2011-08-11 08:42:12 +00:00
parent 320861f455
commit 3b892f06eb

View File

@ -629,7 +629,7 @@ class calendar_ical extends calendar_boupdate
else else
{ {
$length = ($event['end'] - $event['start']) / 2; $length = ($event['end'] - $event['start']) / 2;
$rrule['UNTIL']->modify($length . ' second'); $rrule['UNTIL']->modify((int)$length . ' second');
} }
if (!$tzid || $version != '1.0') if (!$tzid || $version != '1.0')