DateTimeFormat adds comma to short on Java11

Description

The following code:

On Lucee 5.3.8.206 on Java 11 returns: 1/1/21, 7:00 PM

On Lucee 5.3.8.206 on Java 8 returns: 1/1/21 7:00 PM

ACF returns 1/1/21 7:00 PM

Java 11 is adding a comma. This feels very similar to the issue I just reported here: https://luceeserver.atlassian.net/browse/LDEV-3743

Environment

None

Activity

DannyL 28 November 2022 at 20:57
Edited

Java 11 uses a new default locale support, CLDR. I was able to retain Java 8 behavior by adding -Djava.locale.providers=COMPAT to Tomcat.


Pothys - MitrahSoft 19 October 2021 at 14:58

I've checked this ticket on lucee latest version 5.3.9.13-SNAPSHOT with java 8, 11 & 14. Yes, dateTimeFormat() return different results in java 11 & 14 than java 8. But ACF-2021 also returns the same result as lucee. will decide about this.

Did you get the same results in ACF using java 8 & 11?

Pete Freitag 18 October 2021 at 18:19

Additionally with the mask full, it adds “at” before the time on Java11, but does not on Java 8

Pete Freitag 18 October 2021 at 18:13

Also adding a comma after the year with the medium mask

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 18 October 2021 at 18:03
Updated 9 August 2024 at 11:39