mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
"UTC is treated specially: it's implicitly mapped to tz_id=-1 (to be able to store it for events), but calendar_ical creates NO VTIMEZONE component for it."
This commit is contained in:
parent
aa90d987c1
commit
5e24cc0c9b
@ -24,6 +24,9 @@
|
|||||||
*
|
*
|
||||||
* Mapping Windows timezone to standard TZID's:
|
* Mapping Windows timezone to standard TZID's:
|
||||||
* @link http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/windows_tzid.html
|
* @link http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/windows_tzid.html
|
||||||
|
*
|
||||||
|
* UTC is treated specially: it's implicitly mapped to tz_id=-1 (to be able to store it for events),
|
||||||
|
* but calendar_ical creates NO VTIMEZONE component for it.
|
||||||
*/
|
*/
|
||||||
class calendar_timezones
|
class calendar_timezones
|
||||||
{
|
{
|
||||||
@ -149,6 +152,16 @@ class calendar_timezones
|
|||||||
{
|
{
|
||||||
self::$tz_cache =& egw_cache::getSession(__CLASS__,'tz_cache');
|
self::$tz_cache =& egw_cache::getSession(__CLASS__,'tz_cache');
|
||||||
self::$tz2id =& egw_cache::getSession(__CLASS__,'tz2id');
|
self::$tz2id =& egw_cache::getSession(__CLASS__,'tz2id');
|
||||||
|
|
||||||
|
// init cache with mapping UTC <--> -1, as UTC is no real timezone, but we need to be able to use it in calendar
|
||||||
|
if (!is_array(self::$tz2id))
|
||||||
|
{
|
||||||
|
self::$tz_cache = array('-1' => array(
|
||||||
|
'tzid' => 'UTC',
|
||||||
|
'id' => -1,
|
||||||
|
));
|
||||||
|
self::$tz2id = array('UTC' => -1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user