On Fri, 25 Sep 2026 20:37:33 GMT, Justin Lu <[email protected]> wrote:
> This PR corrects a case when the explicit DST offset metazone mapping is used > by `SimpleDateFormat` even when a custom time zone is active. > > For example, one can create a custom time zone named "America/Vancouver" that > has no daylight time. The code before this fix would attempt to match the > custom zones total offset to the CLDR metazone dstoffset to determine > daylight time. > > Such custom zones should not consult the metazone dstoffset mapping to > determine their daylight naming. Note that it is fine for custom names to be > used with a standard zone and still go through the metazone mapping. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: 4ecd5b98 Author: Justin Lu <[email protected]> URL: https://git.openjdk.org/jdk/commit/4ecd5b98a1bd8d1412bcdfa6e599d4b7b411fe79 Stats: 158 lines in 3 files changed: 154 ins; 0 del; 4 mod 8392995: CLDR metazone offset overrides custom DateFormatSymbols and TimeZone behavior Reviewed-by: naoto ------------- PR: https://git.openjdk.org/jdk/pull/33074
