mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
* 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':
|
||||
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,
|
||||
'filename' => 'cal.ics',
|
||||
'encoding' => '8bit',
|
||||
|
@ -2067,18 +2067,11 @@ class calendar_ical extends calendar_boupdate
|
||||
break;
|
||||
|
||||
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
|
||||
else // not set or '0' = use event TZ
|
||||
{
|
||||
$this->tzid = false; // use event's TZ
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user