Permalink
Browse files

Correct `as_json` return example to display miliseconds

As of 28ab79d TimeWithZone#as_json returns 3 decimal places of
sub-second accuracy. This just updates the example on the api docs
reflect that change.
  • Loading branch information...
1 parent 664716b commit 40fa18955360bdf3a79dd0b91ee96df268db2630 @huoxito huoxito committed Nov 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/time_with_zone.rb
@@ -147,7 +147,7 @@ def xmlschema(fraction_digits = 0)
#
# # With ActiveSupport::JSON::Encoding.use_standard_json_time_format = true
# Time.utc(2005,2,1,15,15,10).in_time_zone.to_json
- # # => "2005-02-01T15:15:10Z"
+ # # => "2005-02-01T15:15:10.000Z"
#
# # With ActiveSupport::JSON::Encoding.use_standard_json_time_format = false
# Time.utc(2005,2,1,15,15,10).in_time_zone.to_json

0 comments on commit 40fa189

Please sign in to comment.