Skip to content

Commit 9484f4b

Browse files
committed
Add CHANGELOG entry for rails#11464
1 parent e3c382e commit 9484f4b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

activesupport/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
* Add `ActiveSupport::JSON::Encoding.time_precision` as a way to configure the
2+
precision of encoded time values:
3+
4+
Time.utc(2000, 1, 1).as_json # => "2000-01-01T00:00:00.000Z"
5+
ActiveSupport::JSON::Encoding.time_precision = 0
6+
Time.utc(2000, 1, 1).as_json # => "2000-01-01T00:00:00Z"
7+
8+
*Parker Selbert*
9+
110
* Maintain the current timezone when calling `change` during DST overlap
211

312
Currently if a time is changed during DST overlap in the autumn then the method

0 commit comments

Comments
 (0)