mongodb/js-bson — pull request #86 by upcu (2014-06-02 12:38:33+00:00)
Title: Update bson.js

When I push a message in "field_m" the "t" field is set to Timestamp(0, 0) instead of NumberLong(1401710...) I save the date as NumberLong because this is how other team members need it on Drupal.
"field_m" is an array with elements with this schema:
var MessageSchema = new Schema({
t: {type: Schema.Types.Long, 'default': Math.round(Date.now() / 1000), required: true},
u: {type: String, required: true},
m: {type: String, required: true}
}, {_id: false });

ex:
{...,
"created" : NumberLong(1401710593),
"field_m" : [
{
"m" : "test",
"u" : "ng0i9bqsubjcbx1orhvxqanpa",
"t" : Timestamp(0, 0)
}
],...}