RFR: 8210336: DateTimeFormatter predefined formatters should support short time zone offsets

Chen Liang liach at openjdk.org
Mon Jan 26 02:04:53 UTC 2026


On Fri, 23 Jan 2026 20:34:24 GMT, Naoto Sato <naoto at openjdk.org> wrote:

> This PR is a follow-on fix to [JDK-8032051](https://bugs.openjdk.org/browse/JDK-8032051), where it allowed short offsets only for ZonedDateTime parsing. This fix allows all predefined ISO formatters to accept short offsets. A corresponding CSR has been drafted.

The time tck tests only have toString<>parse round trip and bad parse data. Do you think we need a third type of data for valid parsing but not recoverable in toString?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/29393#issuecomment-3797609387


More information about the core-libs-dev mailing list