REBELinBLUE\Deployer\Console\Commands\InstallApp::getTimezoneLocations PHP Метод

getTimezoneLocations() приватный Метод

Gets a list of available locations in the supplied region.
См. также: DateTimeZone
private getTimezoneLocations ( integer $region ) : array
$region integer The region constant
Результат array
    private function getTimezoneLocations($region)
    {
        $locations = [];
        foreach (DateTimeZone::listIdentifiers($region) as $timezone) {
            $locations[] = substr($timezone, strpos($timezone, '/') + 1);
        }
        return $locations;
    }