private getTimezoneLocations ( integer $region ) : array | ||
$region | integer | The region constant |
return | array |
private function getTimezoneLocations($region)
{
$locations = [];
foreach (DateTimeZone::listIdentifiers($region) as $timezone) {
$locations[] = substr($timezone, strpos($timezone, '/') + 1);
}
return $locations;
}