Hi,
In your test case,
```
new Locale("en_US");
```
This will fall back to ROOT locale texts with CLDR (default since JDK9)
where it differs from US English. Probably you may want to `new
Locale("en", "US)` or preferably use `Locale.US` constant.
Naoto
On 7/10/23 12:08 PM, Bruno Borges wrote:
Hi all,
Was there any change to Date Time Formatter API that made the "EEEE" and
the "MMMM" (and other 4-letter patterns) change from Java 8 to 11+ ?
In Java 8, "EEEE" with locale en_US correctly gives the FULL day of
week, e.g., "Monday".
In Java 11 and 17 (two I've tested), the same input will give "Mon".
I've also tested for "MMMM" expecting "July" (as in 8), but in 11/17 I
get only "Jul".
Here's a test case:
brunoborges/date-formatting-bug@f8f84a1 (github.com)
<https://github.com/brunoborges/date-formatting-bug/actions/runs/5511890139/jobs/10048031299>
Thanks,
Bruno