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

Removing date parsing bug workaround #613

Merged
merged 3 commits into from
Jan 12, 2024

Conversation

arp-0984
Copy link
Collaborator

@arp-0984 arp-0984 commented Oct 16, 2023

There two few issues with date parsing in java 8 that should be resolved in java 11. The point of this ticket is to make sure our date parsing code no longer has issues so we can move over to using the DateTimeFormatter from SimpleDateFormat.

  • FlexibleDateTimeParser has a custom workaround of removing offsets from date strings due to an issue with parsing date strings with a time zone and an offset in java 8. The previous behavior would ignore the offset and use the timezone, so we added a custom solution to strip out the three-letter time zone. Now that we are using java11, the modifications are no longer needed so remove this workaround.

  • http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8032051. Added a test to make sure our code is successfully able to parse dates that have a shorter offset.

@jpdahlke jpdahlke added this to the v8.0.0-M12 milestone Dec 12, 2023
@jpdahlke jpdahlke modified the milestones: v8.0.0-M12, v8.0.0-M13 Dec 27, 2023
@jpdahlke jpdahlke added enhancement An enhancement to an existing feature tech-debt Low-impact cleanup and upkeep and removed enhancement An enhancement to an existing feature labels Jan 12, 2024
@jpdahlke jpdahlke merged commit 67b17ae into NationalSecurityAgency:master Jan 12, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech-debt Low-impact cleanup and upkeep
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants