-
Notifications
You must be signed in to change notification settings - Fork 973
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
DateOnly
from DateTime.MinValue returns "2 months ago"
#1189
Comments
The workaround for this is to add: .ToDateTime(TimeOnly.MinValue).Humanize() |
Humanizer/src/Humanizer/DateTimeHumanizeStrategy/DateTimeHumanizeAlgorithms.cs Lines 158 to 163 in 937e827
Does this need to use |
Probably related to #1186 or solved by it, if it gets a new implementation. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I use
DateOnly
and want to put this into a readable form with Humanizer, I get the error that "2 months ago" comes out forDateTime.MinValue
. If I use DateTime, then I get the expected result of "2022 years ago".Examples:
The text was updated successfully, but these errors were encountered: