aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2014-01-26 20:55:21 +0000
committerAndrew White <andyw@pixeltrix.co.uk>2014-01-26 21:25:54 +0000
commit9484f4b821d90136b106cb7e0e3ebaad31493ee2 (patch)
treeeaa0830c2b1ecd2fc2432ddacb36693296f4c9bc
parente3c382e3d69e7f25593cf45a4acc1b74bb93d057 (diff)
downloadrails-9484f4b821d90136b106cb7e0e3ebaad31493ee2.tar.gz
rails-9484f4b821d90136b106cb7e0e3ebaad31493ee2.tar.bz2
rails-9484f4b821d90136b106cb7e0e3ebaad31493ee2.zip
Add CHANGELOG entry for #11464
-rw-r--r--activesupport/CHANGELOG.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index ba450b85c4..95bf5601f2 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,3 +1,12 @@
+* Add `ActiveSupport::JSON::Encoding.time_precision` as a way to configure the
+ precision of encoded time values:
+
+ Time.utc(2000, 1, 1).as_json # => "2000-01-01T00:00:00.000Z"
+ ActiveSupport::JSON::Encoding.time_precision = 0
+ Time.utc(2000, 1, 1).as_json # => "2000-01-01T00:00:00Z"
+
+ *Parker Selbert*
+
* Maintain the current timezone when calling `change` during DST overlap
Currently if a time is changed during DST overlap in the autumn then the method