Fix the pattern

The Pattern was not the correct one fixing it by the pattern of RFC3339
This commit is contained in:
robbix1206 2016-09-03 23:38:34 +02:00
parent a223abd357
commit a2e6e1da45

View file

@ -19,5 +19,5 @@ type Timestamp string
// Parse parses a timestamp string into a time.Time object. // Parse parses a timestamp string into a time.Time object.
// The only time this can fail is if Discord changes their timestamp format. // The only time this can fail is if Discord changes their timestamp format.
func (t Timestamp) Parse() (time.Time, error) { func (t Timestamp) Parse() (time.Time, error) {
return time.Parse("2006-01-02T15:04:05.000000-07:00", string(t)) return time.Parse(time.RFC3339, string(t))
} }