lib/mongo/grid/file/info.rb in mongo-2.11.6 vs lib/mongo/grid/file/info.rb in mongo-2.12.0.rc0

- old
+ new

@@ -252,10 +252,11 @@ def default_document BSON::Document.new( :_id => BSON::ObjectId.new, :chunkSize => Chunk::DEFAULT_SIZE, - :uploadDate => Time.now.utc, + # MongoDB stores times with millisecond precision + :uploadDate => Time.now.utc.round(3), :contentType => DEFAULT_CONTENT_TYPE ) end end end