8000 Revert "use the system default" · symfony/symfony@68bba36 · GitHub
[go: up one dir, main page]

Skip to content

Commit 68bba36

Browse files
committed
Revert "use the system default"
This reverts commit 99ba4be.
1 parent 7a6ed2d commit 68bba36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ protected function isPatternDateOnly(): bool
200200

201201
private function getCalendarConvertingFormatter(): \IntlDateFormatter
202202
{
203-
$timezone = $this->isPatternDateOnly() ? date_default_timezone_get() : $this->inputTimezone;
203+
$timezone = $this->isPatternDateOnly() ? 'UTC' : $this->inputTimezone;
204204

205205
return new \IntlDateFormatter(\Locale::getDefault(), \IntlDateFormatter::MEDIUM, \IntlDateFormatter::NONE, new \DateTimeZone($timezone), \IntlDateFormatter::GREGORIAN, 'yyyy-MM-dd HH:mm:ss');
206206
}

0 commit comments

Comments
 (0)
0