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 off-by-one error in year builder. #230

Merged
merged 1 commit into from
Nov 15, 2017
Merged

Conversation

nathanfhunter
Copy link
Contributor

This bug bit me when I was stress-testing some event-generation code at my job. Before fixing this bug, I was getting this result:
ghci λ: toField (fromGregorian 10000 1 1)
Plain "':000-01-01'"
After the fix, it works like this:
ghci λ: toField (fromGregorian 10000 1 1)
Plain "'10000-01-01'"

@lpsmith lpsmith merged commit 70e19cd into lpsmith:master Nov 15, 2017
@lpsmith
Copy link
Owner

lpsmith commented Nov 15, 2017

Damn. Thanks! I'll try to add a regression test, get around to dealing with a few other open issues, and get this out sometime soon-ish. (Unfortunately, I've neglected my OSS work lately.)

@nathanfhunter
Copy link
Contributor Author

No problem. Glad I could help.

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

2 participants