This commit is contained in:
Mike Schwörer 2023-02-09 11:27:49 +01:00
parent 94f72e4ddf
commit b0b43de8ca
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF

View File

@ -70,7 +70,7 @@ func (t *RFC3339NanoTime) UnmarshalBSONValue(bt bsontype.Type, data []byte) erro
return errors.New(fmt.Sprintf("cannot unmarshal %v into RFC3339NanoTime", bt))
}
var tt time.Time
err := bson.Unmarshal(data, &tt)
err := bson.RawValue{Type: bt, Value: data}.Unmarshal(&tt)
if err != nil {
return err
}