Swat/SwatTimeZoneEntry.php
private function getRegion($time_zone)
    {
        $region = null;

        if ($time_zone === 'UTC') {
            $region = 'Coordinated_Universal_Time'; // fake region for UTC
        } elseif ($time_zone !== null) {
            $parts = explode('/', $time_zone, 2);
            $region = end($parts);
        }

        return $region;
    }
private function getRegion($time_zone)
    {
        $region = null;

        if ($time_zone === 'UTC') {
            $region = 'Coordinated_Universal_Time'; // fake region for UTC
        } elseif ($time_zone !== null) {
            $parts = explode('/', $time_zone, 2);
            $region = end($parts);
        }

        return $region;
    }
private function getRegion ( $ time_zone ) { $ region = null ; if ( $ time_zone === 'UTC' ) { $ region = 'Coordinated_Universal_Time' ; // fake region for UTC } elseif ( $ time_zone !== null ) { $ parts = explode ( '/' , $ time_zone , 2 ) ; $ region = end ( $ parts ) ; } return $ region ; }
Gets a region from a time zone identifier

@param string $time_zone the time zone identifier from which to get the
region.

@return string the region part of a full time zone indentifier.
Gets a region from a time zone identifier