diff options
author | Andrew White <pixeltrix@users.noreply.github.com> | 2016-09-24 10:35:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-24 10:35:17 +0100 |
commit | bb3bc4755cb6e09e80806011d0ceb2a2ca237e4e (patch) | |
tree | 905c0104a3e5aa19ef4a0030c5050398ec9e3845 /activesupport/CHANGELOG.md | |
parent | 0ce117fac3b9b0c58b3b6a091172d56754b56308 (diff) | |
parent | 76c2553b8832c069793704c5d5629c534f782f88 (diff) | |
download | rails-bb3bc4755cb6e09e80806011d0ceb2a2ca237e4e.tar.gz rails-bb3bc4755cb6e09e80806011d0ceb2a2ca237e4e.tar.bz2 rails-bb3bc4755cb6e09e80806011d0ceb2a2ca237e4e.zip |
Merge pull request #26597 from tbalthazar/26580
Fix ActiveSupport::TimeWithZone#in
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r-- | activesupport/CHANGELOG.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md index 30985060fd..f840783059 100644 --- a/activesupport/CHANGELOG.md +++ b/activesupport/CHANGELOG.md @@ -1,3 +1,22 @@ +* Fix `ActiveSupport::TimeWithZone#in` across DST boundaries. + + Previously calls to `in` were being sent to the non-DST aware + method `Time#since` via `method_missing`. It is now aliased to + the DST aware `ActiveSupport::TimeWithZone#+` which handles + transitions across DST boundaries, e.g: + + Time.zone = "US/Eastern" + + t = Time.zone.local(2016,11,6,1) + # => Sun, 06 Nov 2016 01:00:00 EDT -05:00 + + t.in(1.hour) + # => Sun, 06 Nov 2016 01:00:00 EST -05:00 + + Fixes #26580. + + *Thomas Balthazar* + * Remove unused parameter `options = nil` for `#clear` of `ActiveSupport::Cache::Strategy::LocalCache::LocalStore` and `ActiveSupport::Cache::Strategy::LocalCache`. |