From 978138df1a5b617cf544428a4ec40746d8aa4e29 Mon Sep 17 00:00:00 2001 From: FreeScout Date: Mon, 30 Dec 2024 22:02:57 -0800 Subject: [PATCH] Fix incorrect year returned by User::dateFormat() - closes #4443 --- app/User.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/User.php b/app/User.php index 3d230f862..77b91d364 100644 --- a/app/User.php +++ b/app/User.php @@ -552,6 +552,8 @@ public static function dateFormat($date, $format = 'M j, Y H:i', $user = null, $ 's' => 'ss', 'l' => 'cccc', 'O' => 'xx', + // https://stackoverflow.com/questions/59682843/php-intldateformatter-returns-incorrect-year + 'Y' => 'y', ]); // Remove dot from month name.