mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix regex for failing test on 5.2
This commit is contained in:
parent
4fd45c07f5
commit
e58e3c5314
1 changed files with 1 additions and 1 deletions
|
@ -991,7 +991,7 @@ class CakeTime {
|
||||||
}
|
}
|
||||||
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
|
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
|
||||||
if ($regex === null) {
|
if ($regex === null) {
|
||||||
$regex = '#^(Africa|America|Antartica|Arctic|Asia|Atlantic|Australia|Europe|Indian|Pacific|UTC)/#';
|
$regex = '#^((Africa|America|Antartica|Arctic|Asia|Atlantic|Australia|Europe|Indian|Pacific)/|UTC)#';
|
||||||
}
|
}
|
||||||
$identifiers = DateTimeZone::listIdentifiers();
|
$identifiers = DateTimeZone::listIdentifiers();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue