mirror of
https://github.com/matrix-org/dendrite
synced 2025-03-04 23:37:27 +00:00
Fix parsing ?ts query param (#3396)
Signed-off-by: Tulir Asokan <tulir@maunium.net>
This commit is contained in:
parent
acfc36f697
commit
9566cc6359
1 changed files with 1 additions and 1 deletions
|
@ -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.Time{}, fmt.Errorf("param 'ts' is no valid int (%s)", err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
return time.Unix(ts/1000, 0), nil
|
return time.UnixMilli(ts), nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue