From 808fb0cf2769bba82c4db7956dbe719158e094f4 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 11 Aug 2010 17:32:53 +0200 Subject: [PATCH] Simplify --- kronolith/lib/Event.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/kronolith/lib/Event.php b/kronolith/lib/Event.php index d8c88adeb..d22d4e55e 100644 --- a/kronolith/lib/Event.php +++ b/kronolith/lib/Event.php @@ -775,14 +775,7 @@ abstract class Kronolith_Event foreach ($exceptions as $exception) { if (!empty($exception)) { list($year, $month, $mday) = sscanf($exception, '%04d%02d%02d'); - $exdate = new Horde_Date(array( - 'year' => $year, - 'month' => $month, - 'mday' => $mday, - 'hour' => $this->start->hour, - 'min' => $this->start->min, - 'sec' => $this->start->sec, - )); + $exdate = new Horde_Date($year, $month, $mday); $vEvent->setAttribute('EXDATE', array($exdate)); } } @@ -1074,7 +1067,8 @@ abstract class Kronolith_Event if (is_array($exdates)) { foreach ($exdates as $exdate) { if (is_array($exdate)) { - $this->recurrence->addException((int)$exdate['year'], + $this->recurrence->addException( + (int)$exdate['year'], (int)$exdate['month'], (int)$exdate['mday']); } -- 2.11.0