<i18n dev> RFR: 8285844: TimeZone.getTimeZone(ZoneOffset) does not work for all ZoneOffsets and returns GMT unexpected [v4]
Joe Wang
joehw at openjdk.java.net
Wed May 11 19:20:55 UTC 2022
On Wed, 11 May 2022 17:04:41 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>> This is to extend the `Custom ID`s in `java.util.TimeZone` class to support second-level resolution, enabling round trips with `java.time.ZoneOffset`s. Corresponding CSR is also being drafted.
>
> Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:
>
> Minor fixup
src/java.base/share/classes/java/util/TimeZone.java line 80:
> 78: * {@code GMT} <i>Sign</i> <i>Hours</i> {@code :} <i>Minutes</i> {@code :} <i>Seconds</i>
> 79: * {@code GMT} <i>Sign</i> <i>Hours</i> {@code :} <i>Minutes</i>
> 80: * {@code GMT} <i>Sign</i> <i>Hours</i> <i>Minutes</i>
For hours and minutes, the format can be hh:mm or hhmm. Is it worth it to support hhmmss as well?
-------------
PR: https://git.openjdk.java.net/jdk/pull/8606
More information about the i18n-dev
mailing list