private static function getFlippedTimezones()
    {
        if (null === static::$timezones) {
            static::$timezones = [];

            foreach (\DateTimeZone::listIdentifiers() as $timezone) {
                $parts = explode('/', $timezone);

                if (\count($parts) > 2) {
                    $region = $parts[0];
                } elseif (\count($parts) > 1) {
                    $region = $parts[0];
                } else {
                    $region = 'Other';
                }

                static::$timezones[$region][str_replace('_', ' ', $timezone)] = $timezone;
            }
        }

        return static::$timezones;
    }
private static function getFlippedTimezones()
    {
        if (null === static::$timezones) {
            static::$timezones = [];

            foreach (\DateTimeZone::listIdentifiers() as $timezone) {
                $parts = explode('/', $timezone);

                if (\count($parts) > 2) {
                    $region = $parts[0];
                } elseif (\count($parts) > 1) {
                    $region = $parts[0];
                } else {
                    $region = 'Other';
                }

                static::$timezones[$region][str_replace('_', ' ', $timezone)] = $timezone;
            }
        }

        return static::$timezones;
    }
private static function getFlippedTimezones ( ) { if ( null === static :: $ timezones ) { static :: $ timezones = [ ] ; foreach ( \ DateTimeZone :: listIdentifiers ( ) as $ timezone ) { $ parts = explode ( '/' , $ timezone ) ; if ( \ count ( $ parts ) > 2 ) { $ region = $ parts [ 0 ] ; } elseif ( \ count ( $ parts ) > 1 ) { $ region = $ parts [ 0 ] ; } else { $ region = 'Other' ; } static :: $ timezones [ $ region ] [ str_replace ( '_' , ' ' , $ timezone ) ] = $ timezone ; } } return static :: $ timezones ; }
Returns the timezone choices.

The choices are generated from the ICU function
\DateTimeZone::listIdentifiers(). They are cached during a single request,
so multiple timezone fields on the same page don't lead to unnecessary
overhead.

@return array The timezone choices
Returns the timezone choices .