<i18n dev> RFR: 8364752: Class java.time.Instant cannot parse all ISO 8601 date formats
Naoto Sato
naoto at openjdk.org
Mon Aug 11 16:47:09 UTC 2025
On Mon, 11 Aug 2025 09:09:15 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:
> Shall we accompany the changes with a set of tests that verifies `java.time.Instant::parse` against all all ISO 8601 date formats?
I don't think `Instant.parse()` allows all permitted zone offset styles in ISO, only allowing "+HH:MM:ss" in strict mode. If the user wants to allow all of the format, they would be able to create a custom formatter in lenient mode and use the pattern "+HH" for offset parsing.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26708#issuecomment-3175848523
More information about the i18n-dev
mailing list