original_string: public static function get_localised_timezone($tz) {
          if ($tz == 99) {
              $tz = self::get_server_timezone();
              $tz = self::get_localised_timezone($tz);
              return get_string('timezoneserver', 'core_admin', $tz);
          }
  
          if (get_string_manager()->string_exists(strtolower($tz), 'core_timezones')) {
              $tz = get_string(strtolower($tz), 'core_timezones');
          } else if ($tz === 'GMT' or $tz === 'Etc/GMT' or $tz === 'Etc/UTC') {
              $tz = 'UTC';
          } else if (preg_match('|^Etc/GMT([+-])([0-9]+)$|', $tz, $matches)) {
              $sign = $matches[1] === '+' ? '-' : '+';
              $tz = 'UTC' . $sign . $matches[2];
          }
  
          return $tz;
      }
code: public static function get_localised_timezone($tz) {
          if ($tz == 99) {
              $tz = self::get_server_timezone();
              $tz = self::get_localised_timezone($tz);
              return get_string('timezoneserver', 'core_admin', $tz);
          }
  
          if (get_string_manager()->string_exists(strtolower($tz), 'core_timezones')) {
              $tz = get_string(strtolower($tz), 'core_timezones');
          } else if ($tz === 'GMT' or $tz === 'Etc/GMT' or $tz === 'Etc/UTC') {
              $tz = 'UTC';
          } else if (preg_match('|^Etc/GMT([+-])([0-9]+)$|', $tz, $matches)) {
              $sign = $matches[1] === '+' ? '-' : '+';
              $tz = 'UTC' . $sign . $matches[2];
          }
  
          return $tz;
      }
code_tokens: public static function get_localised_timezone ( $ tz ) { if ( $ tz == 99 ) { $ tz = self :: get_server_timezone ( ) ; $ tz = self :: get_localised_timezone ( $ tz ) ; return get_string ( 'timezoneserver' , 'core_admin' , $ tz ) ; } if ( get_string_manager ( ) -> string_exists ( strtolower ( $ tz ) , 'core_timezones' ) ) { $ tz = get_string ( strtolower ( $ tz ) , 'core_timezones' ) ; } else if ( $ tz === 'GMT' or $ tz === 'Etc/GMT' or $ tz === 'Etc/UTC' ) { $ tz = 'UTC' ; } else if ( preg_match ( '|^Etc/GMT([+-])([0-9]+)$|' , $ tz , $ matches ) ) { $ sign = $ matches [ 1 ] === '+' ? '-' : '+' ; $ tz = 'UTC' . $ sign . $ matches [ 2 ] ; } return $ tz ; }
docstring: Returns localised timezone name.
  @param string $tz
  @return string
docstring_tokens: Returns localised timezone name .