Skip to content

Commit

Permalink
Fix incorrect year returned by User::dateFormat() - closes #4443
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-help-desk committed Dec 31, 2024
1 parent 095af77 commit 978138d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 978138d

Please sign in to comment.