diff options
author | gbuesing <gbuesing@gmail.com> | 2008-04-20 21:57:04 -0500 |
---|---|---|
committer | gbuesing <gbuesing@gmail.com> | 2008-04-20 21:57:04 -0500 |
commit | 32b82e4c6f5523cdf5ee78c3022c50b46e018351 (patch) | |
tree | 1dd9310b862dde2a4788e1d7c7fda99838b7c172 /activesupport/CHANGELOG | |
parent | ef8d26653d308354050ed80f61444bec5458ce05 (diff) | |
download | rails-32b82e4c6f5523cdf5ee78c3022c50b46e018351.tar.gz rails-32b82e4c6f5523cdf5ee78c3022c50b46e018351.tar.bz2 rails-32b82e4c6f5523cdf5ee78c3022c50b46e018351.zip |
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
Diffstat (limited to 'activesupport/CHANGELOG')
-rw-r--r-- | activesupport/CHANGELOG | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG index cfdefed91e..a911361d3b 100644 --- a/activesupport/CHANGELOG +++ b/activesupport/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* 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 [Geoff Buesing] + * Time#since behaves correctly when passed a Duration. Closes #11527 [kemiller] * Add #getutc alias for DateTime#utc [Geoff Buesing] |