aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG.md
diff options
context:
space:
mode:
authorJames Harton <jamesotron@gmail.com>2013-01-31 13:59:09 +1300
committerJames Harton <jamesotron@gmail.com>2013-01-31 14:11:51 +1300
commit28ab79d7c579fa1d76ac868be02b38b02818428a (patch)
treebde101bf8eea9c5a8d5ddbd5886d30a619acffa0 /activesupport/CHANGELOG.md
parent162f7c1edcc45074aca482b4688a08e8ab41083f (diff)
downloadrails-28ab79d7c579fa1d76ac868be02b38b02818428a.tar.gz
rails-28ab79d7c579fa1d76ac868be02b38b02818428a.tar.bz2
rails-28ab79d7c579fa1d76ac868be02b38b02818428a.zip
Modify TimeWithZone#as_json to return 3DP of sub-second accuracy by default, since it's allowed by the spec and is very useful.
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r--activesupport/CHANGELOG.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index a2e6c62c3e..d4d03c7e40 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,5 +1,10 @@
## Rails 4.0.0 (unreleased) ##
+* Modify `TimeWithZone#as_json` to include 3 decimal places of sub-second accuracy
+ by default, which is optional as per the ISO8601 spec, but extremely useful. Also
+ the default behaviour of Date#toJSON() in recent versions of Chrome, Safari and
+ Firefox.
+
* Improve `String#squish` to handle Unicode whitespace. *Antoine Lyset*
* Standardise on `to_time` returning an instance of `Time` in the local system timezone