Displaying 1 result from an estimated 1 matches for "nine_54".
Did you mean:
line54
2007 Feb 21
2
date helper bug?
...tend ApplicationHelper
=> #<Object:0x391bfd8>
# my record from SQL server returns time like this...
>> t.updated_on
=> "\"2007/02/20 15:09:04\""
>> t.updated_on.class
=> String
# so make a string in same format that represents ~1 hour ago...
>> nine_54 = "2007/02/21 09:54:00"
=> "2007/02/21 09:54:00"
# see what the helper gives me... (about 1 hour difference from
Time.now)
>> helper.time_ago_in_words(nine_54)
=> "about 9 hours"
# looking at date_helper.rb I see that parameters passed in are called
with...