A little more information... Not all ActiveSupport::TimeWithZone instances are alike. In the definition of the minus operator (above) I consistantly see that other.acts_like?(:time) so it always returns "utc-other". The difference is, the type of utc! When the TimeWithZone is created from the DB, utc is a Date (and a Date - Date = rational). When the TimeWithZone is created from a test fixture, utc is a Time (and a Time - Date = Time).
Now, at least, I understand how its possible that my subtraction is returning a different type in each case. Unfortunately for me this means the real answer is buried somewhere inside ActiceRecord code and I'm still not smart enough to proceed. :) Two questions: 1) Why isn't anyone else hitting this? The combination of using test fixtures + calling distance_of_time_in_words can't be THAT rare, can it? 2) Any suggestions for a workaround? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

