Skip to content
Permalink
Browse files

Fix regex for failing test on 5.2

  • Loading branch information...
ADmad committed May 21, 2012
1 parent 4fd45c0 commit e58e3c5314dbb7fd882e54c324a4984b711d8c08
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 {

0 comments on commit e58e3c5

Please sign in to comment.
You can’t perform that action at this time.