From b0b43de8ca911f21209facabc1f525254479049e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Thu, 9 Feb 2023 11:27:49 +0100 Subject: [PATCH] v0.0.81 --- rfctime/rfc3339Nano.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfctime/rfc3339Nano.go b/rfctime/rfc3339Nano.go index 428c8e2..7d9f16b 100644 --- a/rfctime/rfc3339Nano.go +++ b/rfctime/rfc3339Nano.go @@ -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 }