SyncML fixes

This commit is contained in:
Lars Kneschke 2007-01-23 17:34:50 +00:00
parent 51b912557d
commit b45b84fe55

View File

@ -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';