Skip to content

Commit

Permalink
Fixed Canadian date parsing (date formatting changed in Java 21)
Browse files Browse the repository at this point in the history
  • Loading branch information
buchen committed Sep 15, 2024
1 parent 25b98ef commit b3dc1ac
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ private static DateTimeFormatter createFormatter(String pattern, Locale locale)
// Date formatters with case-insensitive support for Canada
private static final DateTimeFormatter[] DATE_FORMATTER_CANADA = { //
createFormatter("LLL dd, yyyy", Locale.CANADA), //
createFormatter("LLL d, yyyy", Locale.CANADA) };
createFormatter("LLL. dd, yyyy", Locale.CANADA), //
createFormatter("LLL d, yyyy", Locale.CANADA), //
createFormatter("LLL. d, yyyy", Locale.CANADA) };

// Date formatters with case-insensitive support for Canadian French
private static final DateTimeFormatter[] DATE_FORMATTER_CANADA_FRENCH = { //
Expand Down

0 comments on commit b3dc1ac

Please sign in to comment.