aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG.md
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2015-07-19 22:41:25 +0200
committerKasper Timm Hansen <kaspth@gmail.com>2015-07-19 22:41:25 +0200
commit0bd247cc7679adb3c2e30b46ecc9afd57ac46c45 (patch)
tree0941ec2652edb5d437f54dcdc2030b6c2172f0bc /activesupport/CHANGELOG.md
parentff54b96d3f8e78d797b378ebceb03546ac234b44 (diff)
parent46b5b8ef40d81d583978fc7f111f0cd4ead26dfc (diff)
downloadrails-0bd247cc7679adb3c2e30b46ecc9afd57ac46c45.tar.gz
rails-0bd247cc7679adb3c2e30b46ecc9afd57ac46c45.tar.bz2
rails-0bd247cc7679adb3c2e30b46ecc9afd57ac46c45.zip
Merge pull request #20944 from repinel/fix-time-with-zone-eql
Fix `TimeWithZone#eql?` to handle `TimeWithZone` created from `DateTime`
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r--activesupport/CHANGELOG.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index 1c69e0eb12..7148f289bb 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,3 +1,11 @@
+* Fix `TimeWithZone#eql?` to properly handle `TimeWithZone` created from `DateTime`:
+ twz = DateTime.now.in_time_zone
+ twz.eql?(twz.dup) => true
+
+ Fixes #14178.
+
+ *Roque Pinel*
+
* ActiveSupport::HashWithIndifferentAccess `select` and `reject` will now return
enumerator if called without block.