diff options
author | Tulir Asokan <tulir@maunium.net> | 2024-07-27 21:48:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-27 20:48:15 +0200 |
commit | 9566cc63594d6cc86dcd9bc6f26942158e65b4a9 (patch) | |
tree | 7bae48176122b9f8ce1cc2be25fa207725b74fe1 /clientapi | |
parent | acfc36f697b35c29aa5d0497f5605c655f746614 (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.go | 2 |
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 } |