mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-23 19:31:53 +02:00
"RECURRENCE-ID: $event['reference'] is a calendar_id, not a timestamp"
This commit is contained in:
parent
9f377914c9
commit
0e3f456fe1
@ -568,9 +568,12 @@ class calendar_ical extends calendar_boupdate
|
|||||||
}
|
}
|
||||||
elseif ($event['reference'])
|
elseif ($event['reference'])
|
||||||
{
|
{
|
||||||
if ($this->isWholeDay($event))
|
// $event['reference'] is a calendar_id, not a timestamp
|
||||||
|
$revent = $this->read($event['reference']);
|
||||||
|
|
||||||
|
if ($this->isWholeDay($revent))
|
||||||
{
|
{
|
||||||
$arr = $this->date2array($event['reference']);
|
$arr = $this->date2array($revent['start']);
|
||||||
$vevent->setAttribute('RECURRENCE-ID', array(
|
$vevent->setAttribute('RECURRENCE-ID', array(
|
||||||
'year' => $arr['year'],
|
'year' => $arr['year'],
|
||||||
'month' => $arr['month'],
|
'month' => $arr['month'],
|
||||||
@ -582,13 +585,14 @@ class calendar_ical extends calendar_boupdate
|
|||||||
{
|
{
|
||||||
if ($servertime)
|
if ($servertime)
|
||||||
{
|
{
|
||||||
$attributes['RECURRENCE-ID'] = date('Ymd\THis', $event['reference']);
|
$attributes['RECURRENCE-ID'] = date('Ymd\THis', $revent['start']);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$attributes['RECURRENCE-ID'] = $event['reference'];
|
$attributes['RECURRENCE-ID'] = $revent['start'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
unset($revent);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user