diff options
Diffstat (limited to 'src/mongo/scripting/engine.cpp')
-rw-r--r-- | src/mongo/scripting/engine.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/scripting/engine.cpp b/src/mongo/scripting/engine.cpp index a3178880ea5..675c8e8600b 100644 --- a/src/mongo/scripting/engine.cpp +++ b/src/mongo/scripting/engine.cpp @@ -109,8 +109,9 @@ namespace { builder.appendNull(fieldName); break; case Date: - // TODO: make signed - builder.appendDate(fieldName, Date_t((unsigned long long)getNumber(scopeName))); + builder.appendDate(fieldName, + Date_t::fromMillisSinceEpoch(static_cast<long long>( + getNumber(scopeName)))); break; case Code: builder.appendCode(fieldName, getString(scopeName)); |