From 79281e4bf6cf29d46018ff8604c51c0056d5e45f Mon Sep 17 00:00:00 2001 From: Olivier Poitrey Date: Wed, 9 May 2018 03:51:07 -0700 Subject: [PATCH] Fix Event.Times when format is set to UNIX time --- internal/json/time.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/json/time.go b/internal/json/time.go index 866cc4d..6007d58 100644 --- a/internal/json/time.go +++ b/internal/json/time.go @@ -42,7 +42,7 @@ func appendUnixTimes(dst []byte, vals []time.Time) []byte { dst = strconv.AppendInt(dst, vals[0].Unix(), 10) if len(vals) > 1 { for _, t := range vals[1:] { - dst = strconv.AppendInt(dst, t.Unix(), 10) + dst = strconv.AppendInt(append(dst, ','), t.Unix(), 10) } } dst = append(dst, ']')