endoflife-date / endoflife.date

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

Timeago: X year and M months don't show months if M is too small. #5921

Open sammyhori opened 1 hour ago

sammyhori commented 1 hour ago

Is your feature request related to a problem? Please describe. Currently, in some circumstances, seemingly when there is >= 1 years and the number of months is <= 6, the number of months is not shown. This could cause a problem for someone, especially when comparing two different versions of someting, if the end of life date is less than 6 months apart then the time till EOL may, misleadingly be the same.

Describe the solution you'd like The number of months should always be shown (assuming it's not exactly a set number of years), even if it's 1 year and 1 month.

Describe alternatives you've considered If not possible to fix, perhaps highlighting the actual date would at least make differences that aren't shown by the time countdown.may be more obvious to a user,

Additional context Current table: image Desired date format: image

welcome[bot] commented 1 hour ago

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

sammyhori commented 1 hour ago

This would partially close #5259, but not fix the 12 month issue