Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix regex for failing test on 5.2

  • Loading branch information...
commit e58e3c5314dbb7fd882e54c324a4984b711d8c08 1 parent 4fd45c0
@ADmad ADmad authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/Utility/CakeTime.php
View
2  lib/Cake/Utility/CakeTime.php
@@ -991,7 +991,7 @@ public static function listTimezones($filter = null, $country = null, $group = t
}
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
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();
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.