forked from extern/egroupware
* Calendar: fixed not working "use event TZ" pref for iCal exports and allways use event TZ for calendar notifications (NOT use file export pref.)
This commit is contained in:
parent
fd56c47151
commit
440bcb1235
@ -748,7 +748,13 @@ class calendar_boupdate extends calendar_bo
|
|||||||
case 'ical':
|
case 'ical':
|
||||||
if ($method == 'REQUEST')
|
if ($method == 'REQUEST')
|
||||||
{
|
{
|
||||||
$ics = ExecMethod2('calendar.calendar_ical.exportVCal',$event['id'],'2.0',$method);
|
if (is_null($ics))
|
||||||
|
{
|
||||||
|
$calendar_ical = new calendar_ical();
|
||||||
|
$calendar_ical->setSupportedFields('groupdav'); // full iCal fields+event TZ
|
||||||
|
$ics = $calendar_ical->exportVCal($event['id'],'2.0',$method);
|
||||||
|
unset($calendar_ical);
|
||||||
|
}
|
||||||
$attachment = array( 'string' => $ics,
|
$attachment = array( 'string' => $ics,
|
||||||
'filename' => 'cal.ics',
|
'filename' => 'cal.ics',
|
||||||
'encoding' => '8bit',
|
'encoding' => '8bit',
|
||||||
|
@ -2067,18 +2067,11 @@ class calendar_ical extends calendar_boupdate
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'file': // used outside of SyncML, eg. by the calendar itself ==> all possible fields
|
case 'file': // used outside of SyncML, eg. by the calendar itself ==> all possible fields
|
||||||
if (isset($this->cal_prefs['export_timezone']))
|
if ($this->cal_prefs['export_timezone'])
|
||||||
{
|
{
|
||||||
switch ($this->cal_prefs['export_timezone'])
|
|
||||||
{
|
|
||||||
case 1:
|
|
||||||
$this->tzid = false; // use event's TZ
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
$this->tzid = $this->cal_prefs['export_timezone'];
|
$this->tzid = $this->cal_prefs['export_timezone'];
|
||||||
}
|
}
|
||||||
}
|
else // not set or '0' = use event TZ
|
||||||
else
|
|
||||||
{
|
{
|
||||||
$this->tzid = false; // use event's TZ
|
$this->tzid = false; // use event's TZ
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user