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 jodd dependency (DEV-3069) #3024

Merged
merged 1 commit into from Feb 6, 2024
Merged

chore: Remove jodd dependency (DEV-3069) #3024

merged 1 commit into from Feb 6, 2024

Conversation

siers
Copy link
Contributor

@siers siers commented Feb 6, 2024

Java's implementation uses an days starting at midnight, not at noon, thankfully. JulianFields docs

The tests seem to be good and failed when appropriate, so I have confidence in this change.

Pull Request Checklist

Task Description/Number

Issue Number: DEV-

PR Type

  • build/chore: maintenance tasks (no production code change)
  • docs: documentation changes (no production code change)
  • feat: represents new features
  • fix: represents bug fixes
  • perf: performance improvements
  • refactor: represents production code refactoring
  • test: adding or refactoring tests (no production code change)

Basic requirements for bug fixes and features

  • Tests for the changes have been added
  • Docs have been added / updated

Does this PR introduce a breaking change?

  • Yes

Does this PR change client-test-data?

  • Yes

Copy link

linear bot commented Feb 6, 2024

Copy link

codecov bot commented Feb 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (eac5751) 11.74% compared to head (9028ef7) 88.51%.
Report is 48 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #3024       +/-   ##
===========================================
+ Coverage   11.74%   88.51%   +76.77%     
===========================================
  Files         246      258       +12     
  Lines       22907    22846       -61     
===========================================
+ Hits         2690    20223    +17533     
+ Misses      20217     2623    -17594     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@BalduinLandolt BalduinLandolt 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, thanks!

Copy link
Collaborator

@seakayone seakayone left a comment

Choose a reason for hiding this comment

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

For the time zone you have choosen the ZoneId.systemDefault().

This will actually depend on the servers settings. IMHO it would be better to replace this with a private val utc = ZoneId.of("UTC") for both places.

I have tested this out locally and the tests still pass.

This would make the code independent of external settings.

Java's implementation uses an days starting at midnight, not at noon, thankfully.
@siers siers merged commit 35ff4ed into main Feb 6, 2024
13 checks passed
@siers siers deleted the fix/remove-jodd branch February 6, 2024 11:20
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.

None yet

4 participants