mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
Only one VTIMEZONE per VCALENDAR; Export Alarms again
This commit is contained in:
parent
6989d59ba6
commit
85a9a06a96
@ -257,6 +257,11 @@ class calendar_ical extends calendar_boupdate
|
||||
$servertime = true;
|
||||
$serverTZ = true;
|
||||
}
|
||||
if ($serverTZ)
|
||||
{
|
||||
// Add only one instance
|
||||
$serverTZ = $this->generate_vtimezone($event, $vcal);
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->productManufacturer != 'file' && $this->uidExtension)
|
||||
@ -270,11 +275,6 @@ class calendar_ical extends calendar_boupdate
|
||||
$vevent = Horde_iCalendar::newComponent('VEVENT', $vcal);
|
||||
$parameters = $attributes = $values = array();
|
||||
|
||||
if ($serverTZ)
|
||||
{
|
||||
$serverTZ = $this->generate_vtimezone($event, $vcal);
|
||||
}
|
||||
|
||||
if ($this->productManufacturer == 'sonyericsson')
|
||||
{
|
||||
$eventDST = date('I', $event['start']);
|
||||
@ -685,8 +685,8 @@ class calendar_ical extends calendar_boupdate
|
||||
$attributes['DTSTAMP'] = time();
|
||||
foreach ($event['alarm'] as $alarmID => $alarmData)
|
||||
{
|
||||
// skip alarms being set for all users or alarms owned by other users
|
||||
if ($alarmData['all'] == true || $alarmData['owner'] != $this->user)
|
||||
// skip alarms not being set for all users and alarms owned by other users
|
||||
if ($alarmData['all'] != true && $alarmData['owner'] != $this->user)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user