diff options
Diffstat (limited to 'vendor/github.com/slack-go/slack/info.go')
-rw-r--r-- | vendor/github.com/slack-go/slack/info.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/github.com/slack-go/slack/info.go b/vendor/github.com/slack-go/slack/info.go index fde2bc98..b06dffdb 100644 --- a/vendor/github.com/slack-go/slack/info.go +++ b/vendor/github.com/slack-go/slack/info.go @@ -409,6 +409,11 @@ func (t JSONTime) Time() time.Time { func (t *JSONTime) UnmarshalJSON(buf []byte) error { s := bytes.Trim(buf, `"`) + if bytes.EqualFold(s, []byte("null")) { + *t = JSONTime(0) + return nil + } + v, err := strconv.Atoi(string(s)) if err != nil { return err |