diff options
author | gbuesing <gbuesing@gmail.com> | 2008-09-14 22:56:32 -0500 |
---|---|---|
committer | gbuesing <gbuesing@gmail.com> | 2008-09-14 22:56:32 -0500 |
commit | cce7ae54663243a224e9871f1aac2388842b0c3a (patch) | |
tree | ec225d350eb6c3502cbd41b48b36dba25b4d8dd8 /activesupport/lib/active_support/time_with_zone.rb | |
parent | bfa12d7a02ce0e84fcd2b83f2ce6fee1386757e3 (diff) | |
download | rails-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.rb | 2 |
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? |