From: Jan Schneider Date: Wed, 7 Jul 2010 14:08:38 +0000 (+0200) Subject: Load the timeobjects *after* correcting the start/end dates. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=74db9af4aebdc521455dc1477391c159aa35eaa5;p=horde.git Load the timeobjects *after* correcting the start/end dates. --- diff --git a/kronolith/lib/Driver/Horde.php b/kronolith/lib/Driver/Horde.php index 8921b0e9f..0f5d5869d 100644 --- a/kronolith/lib/Driver/Horde.php +++ b/kronolith/lib/Driver/Horde.php @@ -72,14 +72,14 @@ class Kronolith_Driver_Horde extends Kronolith_Driver 'year' => 9999)); } - $eventsList = $this->_params['registry']->call($this->api . '/listTimeObjects', array(array($category), $startDate, $endDate)); - $startDate = clone $startDate; $startDate->hour = $startDate->min = $startDate->sec = 0; $endDate = clone $endDate; $endDate->hour = 23; $endDate->min = $endDate->sec = 59; + $eventsList = $this->_params['registry']->call($this->api . '/listTimeObjects', array(array($category), $startDate, $endDate)); + $results = array(); foreach ($eventsList as $eventsListItem) { $event = new Kronolith_Event_Horde($this, $eventsListItem);