summaryrefslogtreecommitdiff
path: root/bson
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2011-06-06 19:53:49 -0400
committerdwight <dwight@10gen.com>2011-06-06 19:53:49 -0400
commitc38947fe02dcc5986d001d93ed250c02e6854afe (patch)
tree624c3f314b28cc4d6ef41791170e260a4fe341bf /bson
parent5f5b1e4de4f6a5205edd3f4e03a222753c1523a9 (diff)
downloadmongo-c38947fe02dcc5986d001d93ed250c02e6854afe.tar.gz
signed dates and the shell
Diffstat (limited to 'bson')
-rw-r--r--bson/bson-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bson/bson-inl.h b/bson/bson-inl.h
index 9c8e6207d02..63edac2e166 100644
--- a/bson/bson-inl.h
+++ b/bson/bson-inl.h
@@ -677,7 +677,7 @@ namespace mongo {
s << "EOO";
break;
case mongo::Date:
- s << "new Date(" << date() << ')';
+ s << "new Date(" << (long long) date() << ')';
break;
case RegEx: {
s << "/" << regex() << '/';