<i18n dev> RFR: 8288377: [REDO] DST not applying properly with zone id offset set with TZ env variable

Naoto Sato naoto at openjdk.org
Thu Jun 30 20:16:40 UTC 2022

On Thu, 30 Jun 2022 18:29:42 GMT, Gaurav Chaudhari <duke at openjdk.org> wrote:

> One more thing to note/I'd like to make sure is what the output looks like when TZ is GMT. Want to ensure that the final string being passed down is just "GMT" and that `strftime` invocation returns an empty result. If the result is coming out to be slightly different, then it could be a problem.

You could compare GMT's hour/miute with localtime's. If they are identical, then return "GMT". For that, we may end up reviving `#if defined (MACOSX)` since macOS's tm struct has `tm_gmtoff`, but limited to that piece of code.


PR: https://git.openjdk.org/jdk/pull/9312

More information about the i18n-dev mailing list