endoflife-date / endoflife.date

Informative site with EoL dates of everything
https://endoflife.date
MIT License
2.39k stars 733 forks source link

Timeago: don't use "and 12 months" #5259

Open mjourdan opened 3 months ago

mjourdan commented 3 months ago

Is your feature request related to a problem? Please describe.

Calendar date rounding looks a bit weird today. The same day of the year is rounded in all kind of different ways, like:

Describe the solution you'd like

Consistent rounding results for the whole page would look much nicer. Something like either one of these depending on the number of days:

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context

For instance, the RHEL page shows the following: image

welcome[bot] commented 3 months ago

Thank you for opening your first issue here :+1:. Be sure to follow the issue template if you chose one.

captn3m0 commented 2 months ago

We use the jekyll-timeago gem to generate relative times. Our configuration is the following: https://github.com/endoflife-date/endoflife.date/blob/90b351821e757d95c2100f66af1303f40f63852c/_config.yml#L54-L65

There isn't a configuration option that prevents "X years and 12 months" from happening, or even "1 month and 4 weeks". I've filed https://github.com/markets/jekyll-timeago/issues/39 to track this upstream.

Marking this as blocked upstream for now, and we can look at closing once upstream supports this.