Skip to content

Commit

Permalink
removed unneeded comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Sep 13, 2013
1 parent bce839e commit 68c9c86
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Symfony/Component/Form/Extension/Core/Type/DateType.php
Expand Up @@ -267,10 +267,8 @@ private function formatTimestamps(\IntlDateFormatter $formatter, $regex, array $
{
$pattern = $formatter->getPattern();
$timezone = $formatter->getTimezoneId();
// Use it, if exists.
$setTimeZone = method_exists($formatter, 'setTimeZone');

if ($setTimeZone) {
if ($setTimeZone = method_exists($formatter, 'setTimeZone')) {
$formatter->setTimeZone('UTC');
} else {
$formatter->setTimeZoneId('UTC');
Expand Down

0 comments on commit 68c9c86

Please sign in to comment.