We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 27f5d62 + 6ee4748 commit c10d76aCopy full SHA for c10d76a
bson/bsonrw/extjson_wrappers.go
@@ -184,6 +184,10 @@ const rfc3339Milli = "2006-01-02T15:04:05.999Z07:00"
184
185
func (ejv *extJSONValue) parseDateTime() (int64, error) {
186
switch ejv.t {
187
+ case bsontype.Int32:
188
+ return int64(ejv.v.(int32)), nil
189
+ case bsontype.Int64:
190
+ return ejv.v.(int64), nil
191
case bsontype.String:
192
return parseDatetimeString(ejv.v.(string))
193
case bsontype.EmbeddedDocument:
0 commit comments