-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Avoid "and 4 weeks", or "and 12 months" #39
Comments
Yeah, I was thinking of adapting threshold as well for rounding up (current implementation only rounds down). I'll see if I can work on a PR. |
Also, this felt like a bug more than a feature request - "1 year and 12 months" should always be rounded up to 2 years, irrespective of a threshold. |
Yes, I kind of agree with that. Is that also happening with no custom threshold at all 🤔? For reference, all this logic is implemented in this method: jekyll-timeago/lib/jekyll-timeago/core.rb Lines 69 to 85 in f12f833
|
I did try with zero threshold, but just noticed I ran my tests in a repo with _config.yml that has a threshold set. I'll double check in a clean environment and report back. |
It is possible to get results that use "and 4 weeks", or "and 12 months". It would be better to round such usage up.
The text was updated successfully, but these errors were encountered: