-
Notifications
You must be signed in to change notification settings - Fork 966
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
(DateTime.UtcNow.AddMinutes(-5) - DateTime.UtcNow).Humanize() results in arguments out of range of valid values #436
Comments
I downgraded to 1.36.0 and that version doesn't exhibit this issue. It correctly handles a negative time span as "no time value" message. |
Thanks for reporting this @htapal. Would you be able to send a PR with a supporting test please? |
Suggest merging this with #434 |
This is fixed by #438 although it will not report the negative values as 'no time value'. It will Humanize it as if it's a positive value. |
Thanks @MehdiK. Apologies for the silence as I'd been traveling. I'm assuming this will be included in the next release? |
No worries. Yup! |
Now up on NuGet |
Just upgraded Humanizer to latest version from 1.34.0 to 1.36.0 and started receiving errors when Humanizing a timespan with a negative value.
The text was updated successfully, but these errors were encountered: