Skip to content

Commit

Permalink
fix: use correct symbol for year in date formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkez committed Jul 23, 2023
1 parent 437058e commit 49c99a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base.php
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ function_exists('money_format') &&
($mod=='full' ? IntlDateFormatter::FULL : IntlDateFormatter::LONG);
$pattern = $dateType === IntlDateFormatter::SHORT
? (($ptn=IntlDatePatternGenerator::create($lang[0]))
? $ptn->getBestPattern('YYYYMMdd') : null) : null;
? $ptn->getBestPattern('yyyyMMdd') : null) : null;
$formatter = new IntlDateFormatter($lang[0],$dateType,
IntlDateFormatter::NONE, null,null, $pattern);
return $formatter->format($args[$pos]);
Expand Down

0 comments on commit 49c99a5

Please sign in to comment.