Skip to content

Java 20+ Date Issues #14200

@codeconsole

Description

@codeconsole

These test fail with Java 21 21.0.5-librca, but work with 17.0.12-librca

DefaultDateHelperSpec. Full getTimeFormat for style FULL returns 8:00:00 AM Coordinated Universal Time

DefaultDateHelperSpec. for getDateTimeFormat(FULL, FULL) => Sunday, January 5, 1941 at 8:00:00 AM Coordinated Universal Time

format.format(LocalDateTime.of(localDate, localTime)) == expected
|      |      |             |  |          |           |  |
|      |      |             |  1941-01-05 08:00       |  Sunday, January 5, 1941 at 8:00:00 AM Coordinated Universal Time
|      |      |             1941-01-05T08:00          false
|      |      class java.time.LocalDateTime           4 differences (93% similarity)
|      |                                              Sunday, January 5, 1941(,--) 8:00:00( )AM Coordinated Universal Time
|      |                                              Sunday, January 5, 1941( at) 8:00:00( )AM Coordinated Universal Time
|      Sunday, January 5, 1941, 8:00:00 AM Coordinated Universal Time
Localized(FULL,FULL)

the word at

DefaultDateHelperSpec. for getDateTimeFormat(LONG, LONG) => January 5, 1941 at 8:00:00 AM UTC
January 5, 1941 at 8:00:00 AM UTC vs
January 5, 1941, 8:00:00 AM UTC

DefaultDateHelperSpec. for getDateTimeFormat(MEDIUM, MEDIUM) => Jan 5, 1941, 8:00:00 AM
DefaultDateHelperSpec. for getDateTimeFormat(null, null) => 1/5/41, 8:00 AM
DefaultDateHelperSpec. getTimeFormat for style LONG returns 8:00:00 AM UTC
DefaultDateHelperSpec. getTimeFormat for style MEDIUM returns 8:00:00 AM
DefaultDateHelperSpec. getTimeFormat for style null returns 8:00 AM

format.format(localTime) == expected
|      |      |          |  |
|      |      08:00      |  8:00 AM
|      8:00 AM           false
Localized(,SHORT)        1 difference (85% similarity)
                         8:00( )AM
                         8:00( )AM

issue with the space character??

ValidationTagLibSpec. testFieldValueTagWithFrenchLocaleInTextField

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions