plugins/libkolab

Thomas Brüderli bruederli at kolabsys.com
Tue Jul 3 10:41:11 CEST 2012


 plugins/libkolab/lib/kolab_format_event.php |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 035534eb00a8051494afdc9a2b55f6d122ec4975
Author: Thomas Bruederli <thomas at roundcube.net>
Date:   Tue Jul 3 10:41:56 2012 +0200

    Make sure events from old Kolab2 format also provide start/end properties as DateTime objects

diff --git a/plugins/libkolab/lib/kolab_format_event.php b/plugins/libkolab/lib/kolab_format_event.php
index 3a70700..2242d83 100644
--- a/plugins/libkolab/lib/kolab_format_event.php
+++ b/plugins/libkolab/lib/kolab_format_event.php
@@ -282,8 +282,8 @@ class kolab_format_event extends kolab_format_xcal
             'title' => $rec['summary'],
             'location' => $rec['location'],
             'description' => $rec['body'],
-            'start' => $rec['start-date'],
-            'end' => $rec['end-date'],
+            'start' => new DateTime('@'.$rec['start-date'], self::$timezone),
+            'end'   => new DateTime('@'.$rec['end-date'], self::$timezone),
             'allday' => $allday,
             'recurrence' => $rrule,
             'alarms' => $alarm_value . $alarm_unit,





More information about the commits mailing list