diff --git a/calendar/inc/class.calendar_zpush.inc.php b/calendar/inc/class.calendar_zpush.inc.php index 962adf4909..fd6c7d8ff1 100644 --- a/calendar/inc/class.calendar_zpush.inc.php +++ b/calendar/inc/class.calendar_zpush.inc.php @@ -336,7 +336,7 @@ return array(); // temporary disabling meeting requests from calendar // set timezone try { $as_tz = self::tz2as($event['tzid']); - $message->timezone = base64_encode(calendar_activesync::_getSyncBlobFromTZ($as_tz)); + $message->timezone = base64_encode(self::_getSyncBlobFromTZ($as_tz)); } catch(Exception $e) { // ignore exception, simply set no timezone, as it is optional @@ -1662,17 +1662,17 @@ if (isset($_SERVER['SCRIPT_FILENAME']) && $_SERVER['SCRIPT_FILENAME'] == __FILE_ // get as timezone data for a given timezone $ical = calendar_timezones::tz2id($tz,'component'); //echo "
".print_r($ical,true)."
\n"; - $ical_arr = calendar_activesync::ical2array($ical_tz=$ical); + $ical_arr = calendar_zpush::ical2array($ical_tz=$ical); //echo "
".print_r($ical_arr,true)."
\n"; - $as_tz = calendar_activesync::tz2as($tz); + $as_tz = calendar_zpush::tz2as($tz); //echo "$tz=
".print_r($as_tz,true)."
\n"; - $as_tz_org = calendar_activesync::_getTZFromSyncBlob(base64_decode($sync_blob)); + $as_tz_org = calendar_zpush::_getTZFromSyncBlob(base64_decode($sync_blob)); //echo "sync_blob=
".print_r($as_tz_org,true)."
\n"; // find matching timezone from as data // this returns the FIRST match, which is in case of Pacific/Auckland eg. Antarctica/McMurdo ;-) - $matched = calendar_activesync::as2tz($as_tz); + $matched = calendar_zpush::as2tz($as_tz); //echo array2string($matched); echo "$tz
$ical
$as_tz_org[bias]
$as_tz[bias]$as_tz_org[dstbias]
$as_tz[dstbias]\n";