Skip to content

Commit

Permalink
fix: Wrong year displayed on cards (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenverCoder1 authored Aug 5, 2022
1 parent af91ed6 commit 889d023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function formatDate(string $dateString, string|null $format, string $locale): st
$formatted = date_format($date, str_replace(["[", "]"], "", $format));
} else {
// format with year using locale
$pattern = $patternGenerator->getBestPattern("YYYY MMM d");
$pattern = $patternGenerator->getBestPattern("yyyy MMM d");
$dateFormatter = new IntlDateFormatter(
$locale,
IntlDateFormatter::MEDIUM,
Expand Down

0 comments on commit 889d023

Please sign in to comment.