Fix parsing ?ts query param (#3396)

Signed-off-by: Tulir Asokan <tulir@maunium.net>
This commit is contained in:
Tulir Asokan 2024-07-27 21:48:15 +03:00 committed by GitHub
parent acfc36f697
commit 9566cc6359
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}