Displaying 1 result from an estimated 1 matches for "time_with_zon".
Did you mean:
time_with_zone
2009 Jan 23
3
Bug regarding ActiveRecord and TimeWithZone
...r: expected numeric or date
from /usr/lib/ruby/1.8/date.rb:1252:in `minus_without_duration''
from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/date/calculations.rb:88:in
`-''
from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/time_with_zone.rb:201:in
`-''
from (irb):11
-----------------------------------------
The strange thing is, that "d1" (the ActiveRecord attribute) reports
itself as a TimeWithZone class, but it isn''t. If I do this instead
>> d1 = Time.zone.now
>> d2 = Time.zone.now
>...