fix: oxy dependency version: mailgun/timetools.

This commit is contained in:
Fernandez Ludovic 2017-06-11 18:18:36 +02:00 committed by Ludovic Fernandez
parent 5aa017d9b5
commit 7017cdcf49
33 changed files with 1 additions and 16151 deletions

View file

@ -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)
}