Permalink
Browse files

strip space

  • Loading branch information...
Aditya Sanghi
Aditya Sanghi committed May 6, 2011
1 parent ae7d0d8 commit 65a9563209c741757a9a0177019eff3b10de98a8
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_view/helpers/date_helper.rb
@@ -101,9 +101,9 @@ def distance_of_time_in_words(from_time, to_time = 0, include_seconds = false, o
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)

0 comments on commit 65a9563

Please sign in to comment.