summaryrefslogtreecommitdiff
path: root/src/mongo/bson/oid.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/bson/oid.h')
-rw-r--r--src/mongo/bson/oid.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/bson/oid.h b/src/mongo/bson/oid.h
index df29065bb5e..a4ae3269d5f 100644
--- a/src/mongo/bson/oid.h
+++ b/src/mongo/bson/oid.h
@@ -140,7 +140,7 @@ namespace mongo {
void init( Date_t date, bool max=false );
time_t asTimeT() const;
- Date_t asDateT() const { return asTimeT() * 1000LL; }
+ Date_t asDateT() const { return Date_t::fromMillisSinceEpoch(asTimeT() * 1000LL); }
// True iff the OID is not empty
bool isSet() const {