1

I have timestamps in my model created with t.timestamps command in the migration.

If I look in the database directly, the milliseconds are stored correctly. But when I fetch the object the milliseconds are not there.

Model.first.updated_at.iso8601(3)
 => "2013-09-28T13:43:58.000Z" 

Why isn't the milliseconds fetched from the database?

4

1 回答 1

3

问题不在于 Rails,而是 OS X 上的 Ruby 2.0.0-p247 二进制文件存在错误:

https://github.com/wayneeseguin/rvm/issues/2189

于 2013-10-05T20:29:51.250 回答