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

Migrate from Joda-Time to java.time API #176

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

dzane17
Copy link
Collaborator

@dzane17 dzane17 commented Dec 23, 2024

Description

This PR migrates the codebase from Joda-Time to the java.time API to align with Java's standard library and ensure future compatibility, as Joda-Time is no longer maintained. It replaces Joda-Time classes like DateTime and DateTimeZone with java.time equivalents (ZonedDateTime, ZoneOffset) and updates parsing, formatting, and date-time operations. This change improves maintainability and uses the modern, supported java.time API.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@dzane17 dzane17 marked this pull request as ready for review December 24, 2024 00:14
Copy link
Member

@ansjcy ansjcy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one minor question.
Thanks for making the change!

@dzane17 dzane17 merged commit f570d9f into opensearch-project:main Jan 3, 2025
25 checks passed
@dzane17 dzane17 deleted the upgrade-time-lib branch January 3, 2025 01:04
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 3, 2025
Signed-off-by: David Zane <[email protected]>
(cherry picked from commit f570d9f)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dzane17 pushed a commit that referenced this pull request Jan 3, 2025
(cherry picked from commit f570d9f)

Signed-off-by: David Zane <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants