From 14bbd205f84f173c9ce5909ddcf5e95a577653b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Fri, 5 May 2023 15:04:08 +0200 Subject: [PATCH] v0.0.109 --- rfctime/rfc3339.go | 2 +- rfctime/rfc3339Nano.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rfctime/rfc3339.go b/rfctime/rfc3339.go index 0e350ff..aea8e4f 100644 --- a/rfctime/rfc3339.go +++ b/rfctime/rfc3339.go @@ -67,7 +67,7 @@ func (t *RFC3339Time) UnmarshalText(data []byte) error { func (t *RFC3339Time) UnmarshalBSONValue(bt bsontype.Type, data []byte) error { if bt == bsontype.Null { - *t = RFC3339Time{} + //t = nil return nil } if bt != bsontype.DateTime { diff --git a/rfctime/rfc3339Nano.go b/rfctime/rfc3339Nano.go index 8383b32..b6bef36 100644 --- a/rfctime/rfc3339Nano.go +++ b/rfctime/rfc3339Nano.go @@ -67,7 +67,7 @@ func (t *RFC3339NanoTime) UnmarshalText(data []byte) error { func (t *RFC3339NanoTime) UnmarshalBSONValue(bt bsontype.Type, data []byte) error { if bt == bsontype.Null { - *t = RFC3339NanoTime{} + //t = nil return nil } if bt != bsontype.DateTime {