unicode-org / conformance

Unicode & CLDR Data Driven Testing
https://unicode-org.github.io/conformance/
Other
4 stars 12 forks source link

Fix date time format in ICU4J & ICU4C #297

Open sven-oly opened 1 week ago

sven-oly commented 1 week ago

This updates the timezone generator to output Instant data of the form in UTC: "2024-03-07T00:00:01.00Z"

This instant is used to create the expected result with a given calendar and timezone.

The Java code parses this instant, then applies the options for timezone and calendar to create a formatted output.

Java: Also update to handle date style and time style options better.

This removes "und" from the locales generated in test data because that locale doesn't work the same was across different platforms.

closing #266 #267

sffc commented 1 week ago

"2024-03-07T00:00:01.00Z" is the instant that you want to format.

You want to format the instant in a particular time zone and calendar. You pass those values in the options bag. You should not need to put them into the IXDTF string. If you do, there is a conflict.