- var_dump: documentation ( source)
- timezone_abbreviations_list: documentation ( source)
- timezone_name_from_abbr: documentation ( source)
<?php
$zone = timezone_name_from_abbr('', -43200, false);
$found = array();
if ($zone === false) {
foreach (timezone_abbreviations_list() as $abbr) {
foreach ($abbr as $city) {
if ((bool) $city['dst'] === false &&
strlen($city['timezone_id']) > 0 &&
$city['offset'] == -43200) {
$found[] = $city['timezone_id'];
// $zone = $city;
break;
}
}
if ($zone !== false) {
break;
}
}
}
var_dump($zone);
var_dump($found);