lib/action_view/helpers/date_helper.rb in actionpack-3.2.13 vs lib/action_view/helpers/date_helper.rb in actionpack-3.2.14.rc1

- old
+ new

@@ -110,10 +110,10 @@ # and month then the based on 365 days calculation # the distance in years will come out to over 80 years when in written # english it would read better as about 80 years. minutes_with_offset = distance_in_minutes - minute_offset_for_leap_year remainder = (minutes_with_offset % 525600) - distance_in_years = (minutes_with_offset / 525600) + distance_in_years = (minutes_with_offset.div 525600) if remainder < 131400 locale.t(:about_x_years, :count => distance_in_years) elsif remainder < 394200 locale.t(:over_x_years, :count => distance_in_years) else