Skip to content

Commit 889d023

Browse files
authored
fix: Wrong year displayed on cards (#292)
1 parent af91ed6 commit 889d023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/card.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function formatDate(string $dateString, string|null $format, string $locale): st
3939
$formatted = date_format($date, str_replace(["[", "]"], "", $format));
4040
} else {
4141
// format with year using locale
42-
$pattern = $patternGenerator->getBestPattern("YYYY MMM d");
42+
$pattern = $patternGenerator->getBestPattern("yyyy MMM d");
4343
$dateFormatter = new IntlDateFormatter(
4444
$locale,
4545
IntlDateFormatter::MEDIUM,

0 commit comments

Comments
 (0)