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

chore: remove Joda-Time dependency from maestro-common #25 #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pranaybattu
Copy link

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes (Please run ./gradlew build --write-locks to refresh dependencies)
  • Other (please describe):

NOTE: Please remember to run ./gradlew spotlessApply to fix any format violations.

Changes in this PR

This pull request removes the Joda-Time dependency #25 from the maestro-common module and replaces it with the java.time API. The changes include:

  • Removed Joda-Time dependency from the Defaults class and replaced it with java.time.ZoneId.
  • Updated TriggerHelper class to use java.time.ZoneId instead of Joda-Time's DateTimeZone.
  • Simplified TimeZoneValidator to use a static final set of available time zone IDs, ensuring efficient validation.

This change modernizes the codebase by adopting the java.time API, which is the recommended approach for handling date and time in Java 8 and later versions. The updates ensure that time zone handling is consistent and efficient

- Removed Joda-Time dependency from the Defaults class and replaced it with java.time.ZoneId.
- Updated TriggerHelper class to use java.time.ZoneId instead of Joda-Time's DateTimeZone.
- Simplified TimeZoneValidator to use a static final set of available time zone IDs, ensuring efficient validation.
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.

1 participant