Skip to content

[IOTDB-17433] Fix timezone offset bug in DateTimeUtils#17439

Open
Lexert19 wants to merge 1 commit intoapache:masterfrom
Lexert19:fix_datetime_offset_dst
Open

[IOTDB-17433] Fix timezone offset bug in DateTimeUtils#17439
Lexert19 wants to merge 1 commit intoapache:masterfrom
Lexert19:fix_datetime_offset_dst

Conversation

@Lexert19
Copy link
Copy Markdown

@Lexert19 Lexert19 commented Apr 7, 2026

Description

Refactored DateTimeUtils.toZoneOffset to calculate the timezone offset based on the provided string instead of the current system time (Instant.now()).
Added comprehensive unit tests in DateTimeUtilsTest to cover DST transitions.
Fixes #17433


This PR has:

  • been self-reviewed.
    • concurrent read
    • concurrent write
    • concurrent read and write
  • added documentation for new or modified features or behaviors.
  • added Javadocs for most classes and all non-trivial methods.
  • added or updated version, license, or notice information
  • added comments explaining the "why" and the intent of the code wherever would not be obvious
    for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold
    for code coverage.
  • added integration tests.
  • been tested in a test IoTDB cluster.

Key changed/added classes (or packages if there are too many classes) in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Timezone offset bug in DateTimeUtils

1 participant