Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 495f6a3

Browse files
committed
Merge branch '4.2' into 4.3
* 4.2: Fix wrong requirements for ocramius/proxy-manager in root composer.json Change IntlTimeZone to DateTimeZone
2 parents fa07177 + 9c37d18 commit 495f6a3

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
"masterminds/html5": "^2.6",
111111
"monolog/monolog": "~1.11",
112112
"nyholm/psr7": "^1.0",
113-
"ocramius/proxy-manager": "~0.4|~1.0|~2.0",
113+
"ocramius/proxy-manager": "^2.1",
114114
"predis/predis": "~1.1",
115115
"psr/http-client": "^1.0",
116116
"psr/simple-cache": "^1.0",
@@ -123,6 +123,7 @@
123123
"masterminds/html5": "<2.6",
124124
"phpdocumentor/reflection-docblock": "<3.0||>=3.2.0,<3.2.2",
125125
"phpdocumentor/type-resolver": "<0.3.0",
126+
"ocramius/proxy-manager": "<2.1",
126127
"phpunit/phpunit": "<5.4.3"
127128
},
128129
"autoload": {

src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformer.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,8 @@ protected function getIntlDateFormatter($ignoreTimezone = false)
162162
{
163163
$dateFormat = $this->dateFormat;
164164
$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-
}
165+
$timezone = new \DateTimeZone($ignoreTimezone ? 'UTC' : $this->outputTimezone);
166+
170167
$calendar = $this->calendar;
171168
$pattern = $this->pattern;
172169

0 commit comments

Comments
 (0)