We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3c382e commit 9484f4bCopy full SHA for 9484f4b
activesupport/CHANGELOG.md
@@ -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
10
* Maintain the current timezone when calling `change` during DST overlap
11
12
Currently if a time is changed during DST overlap in the autumn then the method
0 commit comments