Currently the TimeWithZone#as_json always returns 3 decimal points. 
However, the ISO 8601 standard also supports no decimal point format.

It would be great to add an option to the as_json method to not include 
decimals. This would have several advantages.

   - By default, it still returns 3 decimal points. This is the widely used 
   (e.g. by major browsers, Chrome, FF, Safari) option.
   - It would support the no decimal point format part of the ISO 8601 
   standard.
   - It allows Rails can communicate with APIs that is expecting no decimal 
   formats when needed.



-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to