* calendar: update to timezones version 2.2019b

This commit is contained in:
Ralf Becker 2019-09-11 18:37:38 +02:00
parent e2529ea8a3
commit a16a715829
2 changed files with 1476 additions and 432 deletions

View File

@ -7,9 +7,8 @@
* @link http://www.egroupware.org
* @package calendar
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @copyright (c) 2009-16 by RalfBecker-At-outdoor-training.de
* @copyright (c) 2009-19 by RalfBecker-At-outdoor-training.de
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
use EGroupware\Api;
@ -153,6 +152,11 @@ class calendar_timezones
{
$data = self::id2tz($data['alias'],null);
}
if ($what === 'component')
{
// version 2019b no longer contains BEGIN/END:TIMEZONE and TZID
return "BEGIN:VTIMEZONE\r\nTZID:$data[tzid]\r\n$data[component]\r\nEND:VTIMEZONE";
}
return !$data ? $data : ($what ? $data[$what] : $data);
}
@ -260,7 +264,7 @@ class calendar_timezones
'tz_alias' => $data['alias'],
'tz_latitude' => $data['latitude'],
'tz_longitude' => $data['longitude'],
'tz_component' => $data['ics'],
'tz_component' => implode("\r\n", (array)$data['ics']),
),array(
'tz_tzid' => $tzid,
),__LINE__,__FILE__,'calendar');

File diff suppressed because it is too large Load Diff