Skip to content

Commit

Permalink
Fix regex for failing test on 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed May 21, 2012
1 parent 4fd45c0 commit e58e3c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Utility/CakeTime.php
Expand Up @@ -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 {
Expand Down

0 comments on commit e58e3c5

Please sign in to comment.