From b45b84fe5595591c2000a7914bc1ace85e48a282 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Tue, 23 Jan 2007 17:34:50 +0000 Subject: [PATCH] SyncML fixes --- calendar/inc/class.boical.inc.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.boical.inc.php b/calendar/inc/class.boical.inc.php index 38e68402d8..0fe9313e86 100644 --- a/calendar/inc/class.boical.inc.php +++ b/calendar/inc/class.boical.inc.php @@ -150,7 +150,14 @@ return false; // no permission to read $cal_id } //_debug_array($event); - + + // correct daylight saving time + $currentDST = date('I', mktime()); + $eventDST = date('I', $event['start']); + $DSTCorrection = ($currentDST - $eventDST) * 3600; + $event['start'] = $event['start'] + $DSTCorrection; + $event['end'] = $event['end'] + $DSTCorrection; + $eventGUID = $GLOBALS['egw']->common->generate_uid('calendar',$event['id']); $vevent = Horde_iCalendar::newComponent('VEVENT',$vcal); @@ -314,7 +321,7 @@ } } } - + if(strtolower($this->productManufacturer) == 'nokia') { if($event['special'] == '1') { $attributes['X-EPOCAGENDAENTRYTYPE'] = 'ANNIVERSARY';