aboutsummaryrefslogtreecommitdiff
path: root/clientapi
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2024-07-27 21:48:15 +0300
committerGitHub <noreply@github.com>2024-07-27 20:48:15 +0200
commit9566cc63594d6cc86dcd9bc6f26942158e65b4a9 (patch)
tree7bae48176122b9f8ce1cc2be25fa207725b74fe1 /clientapi
parentacfc36f697b35c29aa5d0497f5605c655f746614 (diff)
Fix parsing ?ts query param (#3396)
Signed-off-by: Tulir Asokan <tulir@maunium.net>
Diffstat (limited to 'clientapi')
-rw-r--r--clientapi/httputil/parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/clientapi/httputil/parse.go b/clientapi/httputil/parse.go
index c8358334..a952d177 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
}