[Form] fixed wrong call to setTimeZone() (closes #8644)
This commit is contained in:
parent
5b7e3bfe17
commit
cd51d822b1
@ -269,7 +269,7 @@ class DateType extends AbstractType
|
||||
$timezone = $formatter->getTimezoneId();
|
||||
|
||||
if (version_compare(\PHP_VERSION, '5.5.0-dev', '>=')) {
|
||||
$formatter->setTimeZone(\DateTimeZone::UTC);
|
||||
$formatter->setTimeZone('UTC');
|
||||
} else {
|
||||
$formatter->setTimeZoneId('UTC');
|
||||
}
|
||||
|
Reference in New Issue
Block a user