4-letter patterns in Date Format Style no longer give full text style
Joseph D. Darcy
joe.darcy at oracle.com
Mon Jul 10 19:33:35 UTC 2023
Perhaps JEP 252 (https://openjdk.org/jeps/252) as mentioned in the JDK 9
release notes.
-Joe
On 7/10/2023 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 at f8f84a1 (github.com)
> <https://github.com/brunoborges/date-formatting-bug/actions/runs/5511890139/jobs/10048031299>
>
>
> Thanks,
> Bruno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20230710/408a4cbe/attachment-0001.htm>
More information about the core-libs-dev
mailing list