mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-24 23:09:13 +01:00
using TimezoneUtil in GetMessage to determine as_tz array more correctly
This commit is contained in:
parent
086804ac6e
commit
af6b3b8a0f
@ -1040,7 +1040,12 @@ class calendar_zpush implements activesync_plugin_write, activesync_plugin_meeti
|
|||||||
|
|
||||||
// set timezone
|
// set timezone
|
||||||
try {
|
try {
|
||||||
$as_tz = self::tz2as($event['tzid']);
|
//ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.':'.$event['tzid']);
|
||||||
|
//$as_tz = self::tz2as($event['tzid']);
|
||||||
|
//ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.':'. array2string($as_tz ));
|
||||||
|
// Using TimezoneUtil from zpush to transform from name to as_tz array
|
||||||
|
$as_tz = TimezoneUtil::GetFullTZFromTZName($event['tzid']);
|
||||||
|
ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.' TimeZone:'.$event['tzid'].' transforms to:'. array2string($as_tz ));
|
||||||
$message->timezone = base64_encode(self::_getSyncBlobFromTZ($as_tz));
|
$message->timezone = base64_encode(self::_getSyncBlobFromTZ($as_tz));
|
||||||
}
|
}
|
||||||
catch(Exception $e) {
|
catch(Exception $e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user