aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-01-05 01:10:55 -0800
committerYehuda Katz <wycats@gmail.com>2009-01-05 01:10:55 -0800
commitdb619c4a4115d5eeca9473f8f77f34c877e4e1dd (patch)
tree18c86d54f27884f5f03db0eba86665d4563cfa7e /activesupport/lib/active_support
parentca54cc5df72a8bd7660d5be8333dcee2b6949257 (diff)
downloadrails-db619c4a4115d5eeca9473f8f77f34c877e4e1dd.tar.gz
rails-db619c4a4115d5eeca9473f8f77f34c877e4e1dd.tar.bz2
rails-db619c4a4115d5eeca9473f8f77f34c877e4e1dd.zip
Sync 'rails/rails/master'
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/time_with_zone.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/time_with_zone.rb b/activesupport/lib/active_support/time_with_zone.rb
index 59f1e6163b..51939e1d01 100644
--- a/activesupport/lib/active_support/time_with_zone.rb
+++ b/activesupport/lib/active_support/time_with_zone.rb
@@ -199,7 +199,7 @@ module ActiveSupport
# If we're subtracting a Duration of variable length (i.e., years, months, days), move backwards from #time,
# otherwise move backwards #utc, for accuracy when moving across DST boundaries
if other.acts_like?(:time)
- utc - other
+ utc.to_f - other.to_f
elsif duration_of_variable_length?(other)
method_missing(:-, other)
else