Skip to content

Commit

Permalink
Fix parsing ?ts query param (#3396)
Browse files Browse the repository at this point in the history
Signed-off-by: Tulir Asokan <[email protected]>
  • Loading branch information
tulir authored Jul 27, 2024
1 parent acfc36f commit 9566cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clientapi/httputil/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 9566cc6

Please sign in to comment.