This project is archived and is in readonly mode.
Changeset [32b82e4c6f5523cdf5ee78c3022c50b46e018351] by gbuesing
Revision 32b82e4c6f5523cdf5ee78c3022c50b46e018351,
committed by Repository
· April 21st, 2008 @ 03:57 AM
Duration #since and #ago with no argument (e.g., 5.days.ago) return TimeWithZone when config.time_zone is set. Introducing Time.current, which returns Time.zone.now if config.time_zone is set, otherwise just returns Time.now
5 changed files
-
M
activesupport/CHANGELOG -
M
activesupport/lib/active_support/core_ext/time/zones.rb -
M
activesupport/lib/active_support/duration.rb -
M
activesupport/test/core_ext/duration_test.rb -
M
activesupport/test/core_ext/time_with_zone_test.rb