|
@@ 87-92 (lines=6) @@
|
| 84 |
|
if (self::$timeZoneList === null) { |
| 85 |
|
$idArray = array_keys(timezone_abbreviations_list()); |
| 86 |
|
self::$timeZoneList = []; |
| 87 |
|
foreach ($idArray as $id) { |
| 88 |
|
if (strlen($id) > 1) { // 'a' is really a timezone? |
| 89 |
|
self::$timeZoneList[] = strtolower($id); |
| 90 |
|
self::$timeZoneList[] = strtoupper($id); |
| 91 |
|
} |
| 92 |
|
} |
| 93 |
|
$idArray = \DateTimeZone::listIdentifiers(); |
| 94 |
|
foreach ($idArray as $id) { |
| 95 |
|
self::$timeZoneList[] = strtolower($id); |
|
@@ 94-98 (lines=5) @@
|
| 91 |
|
} |
| 92 |
|
} |
| 93 |
|
$idArray = \DateTimeZone::listIdentifiers(); |
| 94 |
|
foreach ($idArray as $id) { |
| 95 |
|
self::$timeZoneList[] = strtolower($id); |
| 96 |
|
self::$timeZoneList[] = strtoupper($id); |
| 97 |
|
self::$timeZoneList[] = $id; // Items like 'America/Chicago' should be left as is. |
| 98 |
|
} |
| 99 |
|
} |
| 100 |
|
|
| 101 |
|
return in_array($part, self::$timeZoneList); |