21
0
Fork 0
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
1 changed files with 1 additions and 1 deletions

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
}