Fix issue with \DateTimeZone::UTC / 'UTC' for PHP 5.4
This commit is contained in:
parent
b970d172cb
commit
5c359a87f9
@ -271,7 +271,7 @@ class DateType extends AbstractType
|
||||
if (version_compare(\PHP_VERSION, '5.5.0-dev', '>=')) {
|
||||
$formatter->setTimeZone(\DateTimeZone::UTC);
|
||||
} else {
|
||||
$formatter->setTimeZoneId(\DateTimeZone::UTC);
|
||||
$formatter->setTimeZoneId('UTC');
|
||||
}
|
||||
|
||||
if (preg_match($regex, $pattern, $matches)) {
|
||||
|
Reference in New Issue
Block a user