This commit is contained in:
Mike Schwörer 2023-05-05 15:04:08 +02:00
parent cecfb0d788
commit 14bbd205f8
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {