From a2e6e1da453ec48e74c3dbf8bbb7e25694210654 Mon Sep 17 00:00:00 2001 From: robbix1206 Date: Sat, 3 Sep 2016 23:38:34 +0200 Subject: [PATCH] Fix the pattern The Pattern was not the correct one fixing it by the pattern of RFC3339 --- types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types.go b/types.go index 6b140e3..24f52c4 100644 --- a/types.go +++ b/types.go @@ -19,5 +19,5 @@ type Timestamp string // Parse parses a timestamp string into a time.Time object. // The only time this can fail is if Discord changes their timestamp format. 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)) }