Skip to content

Fix epoch_time_to_epoch_year date equation bug related to BalanceISODate #132

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

Merged
merged 3 commits into from
Dec 14, 2024

Conversation

nekevss
Copy link
Member

@nekevss nekevss commented Dec 12, 2024

This PR fixes a bug in the current implementation where at the date limits, we were returning incorrect years, and thus balancing wrong as a result. Furthermore, incorrect output was not being verified via PlainDate::try_new, so that has been added to PlainDate::add_date

NOTE: I am planning on coming back to epoch_time_to_epoch_year in the near future after some reading / research. But this does fix the bug.

Copy link
Member

@jedel1043 jedel1043 left a comment

Choose a reason for hiding this comment

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

Good fix!

@nekevss nekevss merged commit fbeb612 into main Dec 14, 2024
5 checks passed
@nekevss nekevss deleted the fix-date-add branch December 16, 2024 04:13
@jedel1043 jedel1043 added the C-bug Something isn't working label Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants