fix
Build and Push Docker Image / build_and_push (push) Failing after 31s
Details
Build and Push Docker Image / build_and_push (push) Failing after 31s
Details
This commit is contained in:
parent
88e3bae685
commit
9f0dd430e8
|
@ -12,14 +12,14 @@ import (
|
||||||
|
|
||||||
type OCSSTime time.Time
|
type OCSSTime time.Time
|
||||||
|
|
||||||
func (t OCSSTime) MarshalJSON() ([]byte, error) {
|
func (t *OCSSTime) MarshalJSON() ([]byte, error) {
|
||||||
//do your serializing here
|
// do your serializing here
|
||||||
stamp := fmt.Sprintf("%v", time.Time(t).Unix())
|
stamp := fmt.Sprintf("%v", time.Time(*t).Unix())
|
||||||
return []byte(stamp), nil
|
return []byte(stamp), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v OCSSTime) MarshalBSONValue() (bsontype.Type, []byte, error) {
|
func (v *OCSSTime) MarshalBSONValue() (bsontype.Type, []byte, error) {
|
||||||
return bson.MarshalValue(time.Time(v))
|
return bson.MarshalValue(time.Time(*v))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *OCSSTime) UnmarshalJSON(b []byte) error {
|
func (t *OCSSTime) UnmarshalJSON(b []byte) error {
|
||||||
|
@ -39,7 +39,6 @@ func (t *OCSSTime) UnmarshalJSON(b []byte) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *OCSSTime) UnmarshalBSONValue(bt bsontype.Type, b []byte) error {
|
func (t *OCSSTime) UnmarshalBSONValue(bt bsontype.Type, b []byte) error {
|
||||||
|
|
||||||
if bt == bsontype.Null || len(b) == 0 {
|
if bt == bsontype.Null || len(b) == 0 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue