4-letter patterns in Date Format Style no longer give full text style
Bruno Borges
Bruno.Borges at microsoft.com
Mon Jul 10 19:08:17 UTC 2023
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/314a4e18/attachment.htm>
More information about the core-libs-dev
mailing list