aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/time_with_zone.rb
diff options
context:
space:
mode:
authorgbuesing <gbuesing@gmail.com>2008-09-14 22:56:32 -0500
committergbuesing <gbuesing@gmail.com>2008-09-14 22:56:32 -0500
commitcce7ae54663243a224e9871f1aac2388842b0c3a (patch)
treeec225d350eb6c3502cbd41b48b36dba25b4d8dd8 /activesupport/lib/active_support/time_with_zone.rb
parentbfa12d7a02ce0e84fcd2b83f2ce6fee1386757e3 (diff)
downloadrails-cce7ae54663243a224e9871f1aac2388842b0c3a.tar.gz
rails-cce7ae54663243a224e9871f1aac2388842b0c3a.tar.bz2
rails-cce7ae54663243a224e9871f1aac2388842b0c3a.zip
Add thorough tests for Time-object #past?, #future? and #today. Fix TimeWithZone #today? to use #time instead of #utc for date comparison. Update changelog. [#720 state:resolved]
Diffstat (limited to 'activesupport/lib/active_support/time_with_zone.rb')
-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 44088f436e..54cf945251 100644
--- a/activesupport/lib/active_support/time_with_zone.rb
+++ b/activesupport/lib/active_support/time_with_zone.rb
@@ -172,7 +172,7 @@ module ActiveSupport
end
def today?
- utc.today?
+ time.today?
end
def future?