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 OffsetDateTime conversion for pre-Gregorian dates #2568

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

machavan
Copy link
Contributor

Fixed conversion of DateTimeOffset to OffsetDateTime to use Calendar class, to handle pre-Gregorian dates.

Testing:

  • All tests pass
  • Added a new test to test reported scenarios.

Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.05%. Comparing base (6829848) to head (2c91546).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2568      +/-   ##
============================================
+ Coverage     51.03%   51.05%   +0.02%     
- Complexity     3919     3922       +3     
============================================
  Files           147      147              
  Lines         33456    33466      +10     
  Branches       5604     5604              
============================================
+ Hits          17074    17086      +12     
  Misses        13971    13971              
+ Partials       2411     2409       -2     

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Under Peer Review
Development

Successfully merging this pull request may close these issues.

DateTimeOffset incorrectly re-converted to Gregorian calendar for historical dates
3 participants