protected function formatTimezone($timezone, $continent)
    {
        $time = new DateTime(null, new DateTimeZone($timezone));
        $offset = $time->format('P');
        $offset = str_replace('-', ' &minus; ', $offset);
        $offset = str_replace('+', ' &plus; ', $offset);

        $timezone = substr($timezone, strlen($continent) + 1);
        $timezone = str_replace('St_', 'St. ', $timezone);
        $timezone = str_replace('_', ' ', $timezone);

        $formatted = '(GMT/UTC' . $offset . ')' . self::WHITESPACE_SEP . $timezone;
        return $formatted;
    }
protected function formatTimezone($timezone, $continent)
    {
        $time = new DateTime(null, new DateTimeZone($timezone));
        $offset = $time->format('P');
        $offset = str_replace('-', ' &minus; ', $offset);
        $offset = str_replace('+', ' &plus; ', $offset);

        $timezone = substr($timezone, strlen($continent) + 1);
        $timezone = str_replace('St_', 'St. ', $timezone);
        $timezone = str_replace('_', ' ', $timezone);

        $formatted = '(GMT/UTC' . $offset . ')' . self::WHITESPACE_SEP . $timezone;
        return $formatted;
    }
protected function formatTimezone ( $ timezone , $ continent ) { $ time = new DateTime ( null , new DateTimeZone ( $ timezone ) ) ; $ offset = $ time -> format ( 'P' ) ; $ offset = str_replace ( '-' , ' &minus; ' , $ offset ) ; $ offset = str_replace ( '+' , ' &plus; ' , $ offset ) ; $ timezone = substr ( $ timezone , strlen ( $ continent ) + 1 ) ; $ timezone = str_replace ( 'St_' , 'St. ' , $ timezone ) ; $ timezone = str_replace ( '_' , ' ' , $ timezone ) ; $ formatted = '(GMT/UTC' . $ offset . ')' . self :: WHITESPACE_SEP . $ timezone ; return $ formatted ; }
Format to display timezones

@param  string $timezone
@param  string $continent

@return string
Format to display timezones