From 89ca2f3bbecea73e472ca0e9b50bc04050359899 Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 12 Aug 2011 16:15:41 +0200 Subject: [PATCH] Fix timezone offset fix for all-day events --- plugins/calendar/drivers/kolab/kolab_calendar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/calendar/drivers/kolab/kolab_calendar.php b/plugins/calendar/drivers/kolab/kolab_calendar.php index d37a0264..e3a4b255 100644 --- a/plugins/calendar/drivers/kolab/kolab_calendar.php +++ b/plugins/calendar/drivers/kolab/kolab_calendar.php @@ -463,8 +463,8 @@ class kolab_calendar $allday = $start_time == '00:00:00' && $start_time == date('H:i:s', $rec['end-date']); if ($allday) { // in Roundcube all-day events only go until 23:59:59 of the last day $rec['end-date']--; - $rec['end-date'] -= $this->cal->timezone * 3600 - date('Z'); // shift 00 times from server's timezone to user's timezone - $rec['start-date'] -= $this->cal->timezone * 3600 - date('Z'); // because generated with mktime() in Horde_Kolab_Format_Date::decodeDate() + $rec['end-date'] -= $this->cal->timezone * 3600 - date('Z', $rec['end-date']); // shift 00 times from server's timezone to user's timezone + $rec['start-date'] -= $this->cal->timezone * 3600 - date('Z', $rec['start-date']); // because generated with mktime() in Horde_Kolab_Format_Date::decodeDate() } // convert alarm time into internal format