When I return a JSON format of created_at & updated_at from MongoMapper, this is an example of what I see
"updated_at\":\"2012-04-25T16:25:05Z\"
What is the T (time?) and Z at the end?
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"
This is a standardized time format – ISO8601.
Hit this in
irb:From Wikipedia: