{"comment":{"created_at":"2011-10-09T00:49:47Z","body":"This is because some of the time's precision is lost when storing it in MongoDB. Eg:\r\n\r\n```ruby\r\nThing.delete_all\r\n\r\nnow = Time.now\r\ncollection = Mongoid.database.collection 'things'\r\ncollection.update({:begin_time => now}, {:begin_time => now}, {:upsert => true})\r\n\r\nnow.to_f\r\n=> 1318121341.571912\r\n\r\nThing.first.begin_time.to_f\r\n=> 1318121341.572\r\n```","updated_at":"2011-10-09T00:49:47Z","url":"https://api.github.com/repos/mongoid/mongoid/issues/comments/2334618","id":2334618,"user":{"avatar_url":"https://secure.gravatar.com/avatar/49de4cd2f26705785cbef2b15a9df7aa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/nickhoffman","id":21668,"login":"nickhoffman"}},"action":"created","issue":{"number":1336,"created_at":"2011-10-08T22:07:21Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"If I add a Ruby Time to a field in raw Mongodb, finders in Mongoid are unable to see it for some reason.  Example:\r\n\r\nhttps://gist.github.com/1272908\r\n\r\nI'm not sure if I'm doing something wrong or if Mongo/Mongoid is doing something weird here.","comments":1,"title":"Time created in Mongo not findable by Mongoid","updated_at":"2011-10-09T00:49:47Z","url":"https://api.github.com/repos/mongoid/mongoid/issues/1336","id":1854113,"assignee":null,"milestone":null,"closed_at":"2011-10-09T00:49:47Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/fef49788625661984ef674d84086abf0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/geetarista","id":17707,"login":"geetarista"},"html_url":"https://github.com/mongoid/mongoid/issues/1336","labels":[],"state":"closed"},"legacy":{"issue_id":1854113,"comment_id":2334618}}