From 9566cc63594d6cc86dcd9bc6f26942158e65b4a9 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 27 Jul 2024 21:48:15 +0300 Subject: [PATCH] Fix parsing ?ts query param (#3396) Signed-off-by: Tulir Asokan --- clientapi/httputil/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientapi/httputil/parse.go b/clientapi/httputil/parse.go index c83583345..a952d1778 100644 --- a/clientapi/httputil/parse.go +++ b/clientapi/httputil/parse.go @@ -35,5 +35,5 @@ func ParseTSParam(req *http.Request) (time.Time, error) { return time.Time{}, fmt.Errorf("param 'ts' is no valid int (%s)", err.Error()) } - return time.Unix(ts/1000, 0), nil + return time.UnixMilli(ts), nil }