This project is archived and is in readonly mode.

#3106 ✓committed
Ben Fyvie

[PATCH] distance_of_time_in_words inaccurate for 'about 1 year ago'

Reported by Ben Fyvie | August 27th, 2009 @ 05:35 PM

When I think of a date that is "about 1 year ago" I think a year and a month ago or possibly a year and two months ago. However the math used in distance_of_time_in_words accounts for everything up to 1 minute short of two years as being "about a year ago" that means that 1 year 364 days 23 hours and 59 minutes is "about 1 year ago".

I feel dates up to 1 year and one month would better fit the category of "about 1 year ago" anything above that should fall into the "Over 1 year ago" category

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages