aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-06-14 08:06:51 -0600
committerSean Griffin <sean@thoughtbot.com>2015-01-15 08:04:43 -0700
commit5cd3bbbb832b58d2a0092f527d83312df4271de7 (patch)
treebdecb3dcb2569777aefcf73438bdd35617cd3462 /activerecord/CHANGELOG.md
parentd8e710410ea300ec4626250c0b35946cb52bc38c (diff)
downloadrails-5cd3bbbb832b58d2a0092f527d83312df4271de7.tar.gz
rails-5cd3bbbb832b58d2a0092f527d83312df4271de7.tar.bz2
rails-5cd3bbbb832b58d2a0092f527d83312df4271de7.zip
Time columns should support time zone aware attributes
The types that are affected by `time_zone_aware_attributes` (which is on by default) have been made configurable, in case this is a breaking change for existing applications.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 8875b7ae25..c777af342f 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,17 @@
+* `time` columns can now affected by `time_zone_aware_attributes`. If you have
+ set `config.time_zone` to a value other than `'UTC'`, they will be treated
+ as in that time zone by default in Rails 5.0. If this is not the desired
+ behavior, you can set
+
+ ActiveRecord::Base.time_zone_aware_types = [:datetime]
+
+ A deprecation warning will be emitted if you have a `:time` column, and have
+ not explicitly opted out.
+
+ Fixes #3145
+
+ *Sean Griffin*
+
* `nil` as a value for a binary column in a query no longer logs as
"<NULL binary data>", and instead logs as just "nil".