From 65a9563209c741757a9a0177019eff3b10de98a8 Mon Sep 17 00:00:00 2001 From: Aditya Sanghi Date: Fri, 6 May 2011 15:51:09 +0530 Subject: strip space --- actionpack/lib/action_view/helpers/date_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actionpack/lib/action_view/helpers/date_helper.rb b/actionpack/lib/action_view/helpers/date_helper.rb index c5f2fb6b2d..eb8c96a6ae 100644 --- a/actionpack/lib/action_view/helpers/date_helper.rb +++ b/actionpack/lib/action_view/helpers/date_helper.rb @@ -101,9 +101,9 @@ module ActionView leap_years = (fyear > tyear) ? 0 : (fyear..tyear).count{|x| Date.leap?(x)} minute_offset_for_leap_year = leap_years * 1440 # Discount the leap year days when calculating year distance. - # e.g. if there are 20 leap year days between 2 dates having the same day + # e.g. if there are 20 leap year days between 2 dates having the same day # and month then the based on 365 days calculation - # the distance in years will come out to over 80 years when in written + # 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) -- cgit v1.2.3