Skip to content

Commit

Permalink
Making formatter with IntlDateFormatter::MEDIUM, to solve errors when…
Browse files Browse the repository at this point in the history
… trying to convert a bigger string into timestamp.
  • Loading branch information
marcoaacoliveira committed Jan 6, 2020
1 parent 8ee89af commit c85410d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function date($date = null, $locale = null, $useTimezone = true, $include
$timeType = $includeTime ? \IntlDateFormatter::SHORT : \IntlDateFormatter::NONE;
$formatter = new \IntlDateFormatter(
$locale,
\IntlDateFormatter::SHORT,
\IntlDateFormatter::MEDIUM,
$timeType,
new \DateTimeZone($timezone)
);
Expand Down

0 comments on commit c85410d

Please sign in to comment.