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
Unexpected output: "less than 1 second" with only: [:years, :months] #50
Comments
Please provide exact steps to reproduce this problem.
|
Quite simple: Edit |
I think this would be a large reworking of how the logic in dotiw works. I do not have the time/energy to do this right now. Can you please investigate a fix for this? |
No problem, I'll start working on this later this week. |
I'm trying to output an age in years and months, but when the output is less than 1 month it outputs "less than 1 second":
https://github.com/radar/dotiw/blob/master/lib/dotiw/action_view_ext/helpers/date_helper.rb#L61
I think the output should rather be "less than 1 month" or "0 months".
The text was updated successfully, but these errors were encountered: