Skip to content

Commit

Permalink
[Form] fixed wrong call to setTimeZone() (closes #8644)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Aug 2, 2013
1 parent 5b7e3bf commit cd51d82
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -269,7 +269,7 @@ private function formatTimestamps(\IntlDateFormatter $formatter, $regex, array $
$timezone = $formatter->getTimezoneId();

if (version_compare(\PHP_VERSION, '5.5.0-dev', '>=')) {
$formatter->setTimeZone(\DateTimeZone::UTC);
$formatter->setTimeZone('UTC');
} else {
$formatter->setTimeZoneId('UTC');
}
Expand Down

0 comments on commit cd51d82

Please sign in to comment.