ZP-828 Change back getMSTZnameFromTZName to private as is not called outside...

ZP-828 Change back getMSTZnameFromTZName to private as is not called outside TimeZoneUtil. Released under the Affero GNU General Public License (AGPL) version 3.
parent f9c56aaa
......@@ -1224,10 +1224,10 @@ class TimezoneUtil {
*
* @param string $name internal timezone name
*
* @access public
* @access private
* @return string
*/
static public function getMSTZnameFromTZName($name) {
static private function getMSTZnameFromTZName($name) {
foreach (self::$mstzones as $mskey => $msdefs) {
if ($name == $msdefs[0])
return $msdefs[1];
......@@ -1349,6 +1349,6 @@ class TimezoneUtil {
if (preg_match('/\/[.[:word:]]+\/\w+\/(\w+)\/([\w\/]+)/', $timezone, $matches)) {
return $matches[1] . "/" . $matches[2];
}
return TimezoneUtil::getMSTZnameFromTZName(trim($timezone, '"'));
return self::getMSTZnameFromTZName(trim($timezone, '"'));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment