fix: oxy dependency version: mailgun/timetools.
This commit is contained in:
parent
5aa017d9b5
commit
7017cdcf49
33 changed files with 1 additions and 16151 deletions
16
vendor/github.com/mailgun/timetools/rfc2822time.go
generated
vendored
16
vendor/github.com/mailgun/timetools/rfc2822time.go
generated
vendored
|
@ -3,8 +3,6 @@ package timetools
|
|||
import (
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"gopkg.in/mgo.v2/bson"
|
||||
)
|
||||
|
||||
// We use RFC2822 format for timestamps everywhere ('Thu, 13 Oct 2011 18:02:00 GMT'), but
|
||||
|
@ -40,20 +38,6 @@ func (t *RFC2822Time) UnmarshalJSON(s []byte) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (t RFC2822Time) GetBSON() (interface{}, error) {
|
||||
return time.Time(t), nil
|
||||
}
|
||||
|
||||
func (t *RFC2822Time) SetBSON(raw bson.Raw) error {
|
||||
var result time.Time
|
||||
err := raw.Unmarshal(&result)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*t = RFC2822Time(result)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (t RFC2822Time) String() string {
|
||||
return time.Time(t).Format(time.RFC1123)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue