Java 19+ predefined date formatting changes - unicode

Description

With Java 19+, i.e. java 21 for most users, the space before AM/PM is no longer a space, but a non breaking space, which breaks existing behaviours

The modern date handling in java handles this automatically

https://bugs.openjdk.org/browse/JDK-8304925

https://bugs.openjdk.org/browse/JDK-8284840

 

(NBSP/NNBSP prefixed to AM/PM in time format, instead of a normal space)
(" at " is no longer used for standard date/time format)
(Fix first day of week info for China (CN))
(Japanese: Support numbers up to 9999京)

see

Environment

 

(NBSP/NNBSP prefixed to AM/PM in time format, instead of a normal space)
(" at " is no longer used for standard date/time format)
(Fix first day of week info for China (CN))
(Japanese: Support numbers up to 9999京)

see

Attachments

2

Activity

Michael Offner 
3 June 2024 at 14:39
(edited)

issue is fixed and testcases passing now, problem was related with the move from SimpleDateFormat to DateTimeFormatter. so it was a regression.

Michael Offner 
3 June 2024 at 08:21

funny, so i seem to disagree with myself

Zac Spitzer 
3 June 2024 at 08:10

changes were made since I filed this

here’s a disabled test case

Michael Offner 
3 June 2024 at 08:05

I don’t wanna manipulate the rsult from formatting, but Lucee should be able to handle the existing format when parsing.

Michael Offner 
3 June 2024 at 08:04

more

Fixed

Details

Assignee

Reporter

Priority

Fix versions

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

Sprint

Created 4 August 2023 at 16:49
Updated 23 January 2025 at 17:53
Resolved 3 June 2024 at 15:48