Jule convertToZone: Unclear handling of ambiguous DST times
0 reputation · 06 Apr 2024, 03:06 UTC
Jule convertToZone: Unclear handling of ambiguous DST times
Goal: determine how the Jule library resolves local times that occur twice during a daylight‑saving time (DST) transition, such as 2023‑11‑05 01:30:00 in America/New_York.
Constraint: The convertToZone(Date, String) API returns a ZonedDateTime but lacks documentation on which offset is chosen when the same local time is ambiguous.
Uncertainty: Without a configuration option to specify standard or daylight offset, developers must infer behavior from the underlying JDK, potentially leading to off‑by‑one‑hour errors.
Questions:
- Which offset does Jule apply when converting an ambiguous local time during a DST end transition?
- Is there a future plan to expose a configuration flag or overload to select the desired offset for such cases?
- Does Jule support custom time‑zone rules beyond the IANA database bundled with the JDK?