Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DateTime initialization and comparison code to deal correctly with half hour and fifteen minute timezones #1259

Merged

Conversation

lukedegruchy
Copy link
Contributor

@lukedegruchy lukedegruchy commented Oct 25, 2023

  • Maintain a ZoneOffset field in DateTime, whether derived directly from one of the constructors or converted from an OffsetDateTime or BigDecimal value
  • Replace the State-based implementation of getNormalized() and instead based the timestamp conversion on the above ZoneOffset, if it's non-null
  • Ensure that compareToPrecision() takes the left DateTime's ZoneOffset and passes it to the other DateTime's getNormalized() so that comparison is done based on the same timezone
  • Add lots of new tests.

Closes #1222

… Newfoundland workstation due a flaw in the bugfix.
… two getNormalized() methods, one of which takes another ZoneId. Pass in the "this" DateTime's zoneId when normalizing the "other" DateTime. Add stub with comments for new DateTimeTest. Lots of TODOs and cleanup needed. Need to test on Newfoundland workstation.
…'t figured out why Newfoundland in non-DST fails.
@lukedegruchy lukedegruchy changed the title 1222 build failure half hour timezone ex newfoundland canada Fix DateTime initialization and comparison code to deal correctly with half hour and fifteen minute timezones Oct 27, 2023
@lukedegruchy lukedegruchy marked this pull request as ready for review October 27, 2023 17:09
@JPercival JPercival enabled auto-merge (squash) October 27, 2023 21:22
@JPercival JPercival merged commit 2751734 into master Oct 27, 2023
2 checks passed
@JPercival JPercival deleted the 1222-build-failure-half-hour-timezone-ex-newfoundland-canada branch October 27, 2023 22:31
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.

Build failure for Java engine for half-hour offset time zones
3 participants