From 6e06cf1074f2ecd2d33bdebcc5e08579b19f0e5d Mon Sep 17 00:00:00 2001 From: Michael Parker Date: Thu, 9 Jan 2020 16:10:56 -0600 Subject: [PATCH] use unix timestamp ms --- pkg/controller/webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/webhook.go b/pkg/controller/webhook.go index dacb929f..6501efd2 100644 --- a/pkg/controller/webhook.go +++ b/pkg/controller/webhook.go @@ -94,7 +94,7 @@ func CallEventWebhook(r *flaggerv1.Canary, webhook, message, eventtype string) e Metadata: map[string]string{ "eventMessage": message, "eventType": eventtype, - "timestamp": strconv.FormatInt(t.UnixNano(), 10), + "timestamp": strconv.FormatInt(t.UnixNano()/1000000, 10), }, }