Skip to content

Commit

Permalink
fix: force en_US date format to fix Sep Sept change in Java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLicense committed Sep 4, 2024
1 parent 55b9d39 commit 022569a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public static java.time.LocalDate getPastDate(@NotNull int years) {
}

public static String getCurrentDate(String datePattern) {
DateTimeFormatter formatter = DateTimeFormatter.ofPattern(datePattern);
DateTimeFormatter formatter = DateTimeFormatter.ofPattern(datePattern, Locale.US);
return LocalDate.now().format(formatter);
}

Expand Down

0 comments on commit 022569a

Please sign in to comment.