Hi Pavel,

On 6/18/25 4:29 AM, Pavel Rappo wrote:
The second question is about DateTimeFormatter. I recently had to
parse a date that resembles output of asctime: Sat Jul 16 02:03:55
+0000 1994. It's fine and dandy until you parse a date in September.
That time format expects "Sep", while the formatter expects "Sept".

Now, I'm aware that it's a known issue [^1]. Still, I wonder if we can
do anything better than suggest using a specific locale, which is not
bulletproof, or going to the DateTimeFormatterBuilder route.

Yes, I do understand the pain. This is all due to CLDR changing the abbreviation for September, and looks like not only Java, but many other software products have suffered with this change. We discussed this a lot internally. The fact is that the localization may change thus the users should not assume its stability. This kind of change could happen in any format/parse situations and unfortunately there is not a generic solution IMO.

Naoto

Reply via email to