Skip to content

Commit c85410d

Browse files
Making formatter with IntlDateFormatter::MEDIUM, to solve errors when trying to convert a bigger string into timestamp.
1 parent 8ee89af commit c85410d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Stdlib/DateTime/Timezone.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function date($date = null, $locale = null, $useTimezone = true, $include
177177
$timeType = $includeTime ? \IntlDateFormatter::SHORT : \IntlDateFormatter::NONE;
178178
$formatter = new \IntlDateFormatter(
179179
$locale,
180-
\IntlDateFormatter::SHORT,
180+
\IntlDateFormatter::MEDIUM,
181181
$timeType,
182182
new \DateTimeZone($timezone)
183183
);

0 commit comments

Comments
 (0)