Start using Date_t. Can anyone think of a better name?

This commit is contained in:
Mathias Stearn
2009-12-03 17:25:22 -05:00
parent 5660a25e9b
commit dcf3a10eea
20 changed files with 59 additions and 32 deletions

View File

@@ -537,7 +537,7 @@ namespace mongo {
return OBJECT_TO_JSVAL( JS_GetFunctionObject( func ) );
}
case Date:
return OBJECT_TO_JSVAL( js_NewDateObjectMsec( _context , (jsdouble) e.date() ) );
return OBJECT_TO_JSVAL( js_NewDateObjectMsec( _context , (jsdouble) e.date().millis ) );
case MinKey:
return OBJECT_TO_JSVAL( JS_NewObject( _context , &minkey_class , 0 , 0 ) );