Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Fix parsing ?ts query param
Browse files Browse the repository at this point in the history
Signed-off-by: Tulir Asokan <tulir@maunium.net>
  • Loading branch information
tulir committed Jul 24, 2024
1 parent 3e62b98 commit d742103
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 d742103

Please sign in to comment.