Skip to content

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.

@codecov
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).
Report is 3 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2568      +/-   ##
============================================
- Coverage     51.12%   51.05%   -0.08%     
+ Complexity     3940     3922      -18     
============================================
  Files           147      147              
  Lines         33456    33466      +10     
  Branches       5604     5604              
============================================
- Hits          17105    17086      -19     
- Misses        13963    13971       +8     
- Partials       2388     2409      +21     

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

@machavan machavan merged commit 74a5cb8 into main Dec 24, 2024
19 checks passed
@machavan machavan deleted the dev/machavan/2565 branch December 24, 2024 05:15
Ananya2 pushed a commit that referenced this pull request Jan 10, 2025
* Fix OffsetDateTime conversion for pre-Gregorian dates

* Formatting changes

* Removed unused import
@lilgreenbird lilgreenbird changed the title Fix OffsetDateTime conversion for pre-Gregorian dates Fixed OffsetDateTime conversion for pre-Gregorian dates Mar 4, 2025
@lilgreenbird lilgreenbird modified the milestones: 12.11.0, 12.10.0 Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed/Merged PRs

Development

Successfully merging this pull request may close these issues.

DateTimeOffset incorrectly re-converted to Gregorian calendar for historical dates

5 participants