0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/date1.js
2009-05-14 10:57:06 -04:00

9 lines
108 B
JavaScript

t = db.date1;
t.drop();
d = new Date()
t.save( { a : 1 , d : d } );
assert.eq( d , t.findOne().d , "A" )