From: Michael J. Rubinsky Date: Mon, 9 Aug 2010 18:27:58 +0000 (-0400) Subject: Even better, use the new Horde_Date#toIcalendar() method instead. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c135db849c5f1a32590521f4466541bb686e985e;p=horde.git Even better, use the new Horde_Date#toIcalendar() method instead. --- diff --git a/framework/Icalendar/lib/Horde/Icalendar.php b/framework/Icalendar/lib/Horde/Icalendar.php index de2bc0a55..45078224d 100644 --- a/framework/Icalendar/lib/Horde/Icalendar.php +++ b/framework/Icalendar/lib/Horde/Icalendar.php @@ -1290,12 +1290,7 @@ class Horde_Icalendar public function _exportDateTime($value) { $date = new Horde_Date($value); - $date->setTimezone('UTC'); - $time = array('hour' => $date->hour, - 'minute' => $date->min, - 'second' => $date->sec, - 'zone' => 'UTC'); - return $this->_exportDate($date) . 'T' . $this->_exportTime($time); + return $date->toICalendar(); } /**