From 9484f4b821d90136b106cb7e0e3ebaad31493ee2 Mon Sep 17 00:00:00 2001 From: Andrew White Date: Sun, 26 Jan 2014 20:55:21 +0000 Subject: [PATCH] Add CHANGELOG entry for #11464 --- activesupport/CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md index ba450b85c47e2..95bf5601f29f3 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