summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/jsobjtests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/jsobjtests.cpp')
-rw-r--r--src/mongo/dbtests/jsobjtests.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/dbtests/jsobjtests.cpp b/src/mongo/dbtests/jsobjtests.cpp
index 62a69fc6ded..f823e5301ee 100644
--- a/src/mongo/dbtests/jsobjtests.cpp
+++ b/src/mongo/dbtests/jsobjtests.cpp
@@ -1311,7 +1311,8 @@ namespace JsobjTests {
const Date_t base( ::time( 0 ) );
oid.init( base );
- ASSERT_EQUALS( base.millis / 1000, oid.asDateT().millis / 1000 );
+ ASSERT_EQUALS(base.toMillisSinceEpoch() / 1000,
+ oid.asDateT().toMillisSinceEpoch() / 1000);
ASSERT_EQUALS( base.toTimeT(), oid.asTimeT() );
}
};