Standardize all JSON encoded times to use 3 decimal fractional seconds

`TimeWithZone` uses three decimal places, so should `Time` and `DateTime`

https://github.com/rails/rails/pull/12226