当我回去一份创建的“灯塔”格式时;从MongoMapper那里得到更新,这是我看到的一个实例。
updated_at>:"2012-04-25T16:25:05Z"
什么是T(时间?)和Z?
irb(main):009:0> Story.last.created_at
DEBUG - MONGODB (0ms) prototype_development[ stories ].find({}).limit(-1)
=> 2012-04-25 16:24:26 UTC
irb(main):010:0> Story.last.created_at.to_s
DEBUG - MONGODB (0ms) prototype_development[ stories ].find({}).limit(-1)
=> "2012-04-25 16:24:26 UTC"
irb(main):011:0> JSON.parse(Story.last.to_json)[ created_at ]
DEBUG - MONGODB (0ms) prototype_development[ stories ].find({}).limit(-1)
=> "2012-04-25T16:24:26Z"