From 49c99a57a631ef39ea552e403155b9a0abbcd5a1 Mon Sep 17 00:00:00 2001 From: ikkez Date: Sun, 23 Jul 2023 22:43:00 +0200 Subject: [PATCH] fix: use correct symbol for year in date formatter --- base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base.php b/base.php index c495d13c..74b1bb8e 100644 --- a/base.php +++ b/base.php @@ -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]);