v0.0.109
This commit is contained in:
parent
cecfb0d788
commit
14bbd205f8
@ -67,7 +67,7 @@ func (t *RFC3339Time) UnmarshalText(data []byte) error {
|
|||||||
|
|
||||||
func (t *RFC3339Time) UnmarshalBSONValue(bt bsontype.Type, data []byte) error {
|
func (t *RFC3339Time) UnmarshalBSONValue(bt bsontype.Type, data []byte) error {
|
||||||
if bt == bsontype.Null {
|
if bt == bsontype.Null {
|
||||||
*t = RFC3339Time{}
|
//t = nil
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if bt != bsontype.DateTime {
|
if bt != bsontype.DateTime {
|
||||||
|
@ -67,7 +67,7 @@ func (t *RFC3339NanoTime) UnmarshalText(data []byte) error {
|
|||||||
|
|
||||||
func (t *RFC3339NanoTime) UnmarshalBSONValue(bt bsontype.Type, data []byte) error {
|
func (t *RFC3339NanoTime) UnmarshalBSONValue(bt bsontype.Type, data []byte) error {
|
||||||
if bt == bsontype.Null {
|
if bt == bsontype.Null {
|
||||||
*t = RFC3339NanoTime{}
|
//t = nil
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if bt != bsontype.DateTime {
|
if bt != bsontype.DateTime {
|
||||||
|
Loading…
Reference in New Issue
Block a user