diff options
Diffstat (limited to 'src/mongo/bson/bsonobjbuilder.cpp')
| -rw-r--r-- | src/mongo/bson/bsonobjbuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/bson/bsonobjbuilder.cpp b/src/mongo/bson/bsonobjbuilder.cpp index e8e50fd38a7..096ba297e99 100644 --- a/src/mongo/bson/bsonobjbuilder.cpp +++ b/src/mongo/bson/bsonobjbuilder.cpp @@ -182,7 +182,7 @@ Derived& BSONObjBuilderBase<Derived, B>::appendMaxForType(StringData fieldName, template <class Derived, class B> Derived& BSONObjBuilderBase<Derived, B>::appendDate(StringData fieldName, Date_t dt) { _b.appendNum((char)Date); - _b.appendStr(fieldName); + _b.appendCStr(fieldName); _b.appendNum(dt.toMillisSinceEpoch()); return static_cast<Derived&>(*this); } |
