Skip to content

Commit 9c86f92

Browse files
author
rstam
committed
Merge commit '27bb' into alyman
2 parents 1006e4f + 27bb832 commit 9c86f92

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Bson/ObjectModel/BsonDocument.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,6 +1200,9 @@ private object ToDictionaryHelper(BsonValue value)
12001200
case BsonType.Document:
12011201
return value.AsBsonDocument.ToDictionary();
12021202

1203+
case BsonType.DateTime:
1204+
return value.AsDateTime;
1205+
12031206
default:
12041207
return value.RawValue;
12051208
}
@@ -1217,6 +1220,9 @@ private object ToHashtableHelper(BsonValue value)
12171220
case BsonType.Document:
12181221
return value.AsBsonDocument.ToHashtable();
12191222

1223+
case BsonType.DateTime:
1224+
return value.AsDateTime;
1225+
12201226
default:
12211227
return value.RawValue;
12221228
}

0 commit comments

Comments
 (0)