On Thu, 14 Aug 2025 23:49:25 GMT, Naoto Sato <na...@openjdk.org> wrote:

>> `Instant.parse()` is expected to use the offset zone pattern `+HH:mm:ss` (as 
>> defined by `DateTimeFormatterBuilder.appendOffsetId()`), but it fails to 
>> parse hour-only offsets such as `+02`. This is because the actual 
>> implementation uses `+HH:MM:ss` as the pattern. While replacing the pattern 
>> in the implementation as with the specification would allow hour-only 
>> offsets, it would also introduce compatibility issues, i.e., printing would 
>> omit the minutes field when it is zero. So, it is preferable to update the 
>> specification to match the implementation. A CSR has also been drafted for 
>> this change.
>
> Naoto Sato has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   test cases

Changed the proposed fix to leniently allow all ISO 8601 offsets by using "+HH" 
as the pattern.

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

PR Comment: https://git.openjdk.org/jdk/pull/26708#issuecomment-3190223880

Reply via email to