Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ae0580 commit a6025abCopy full SHA for a6025ab
src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformer.php
@@ -162,11 +162,8 @@ protected function getIntlDateFormatter($ignoreTimezone = false)
162
{
163
$dateFormat = $this->dateFormat;
164
$timeFormat = $this->timeFormat;
165
- $timezone = $ignoreTimezone ? 'UTC' : $this->outputTimezone;
166
- if (class_exists('IntlTimeZone', false)) {
167
- // see https://bugs.php.net/bug.php?id=66323
168
- $timezone = \IntlTimeZone::createTimeZone($timezone);
169
- }
+ $timezone = new \DateTimeZone($ignoreTimezone ? 'UTC' : $this->outputTimezone);
+
170
$calendar = $this->calendar;
171
$pattern = $this->pattern;
172
0 commit comments