mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-08 23:08:27 +00:00
cmd/stdiscosrv: Use UTC in database timestamps (fixes #3509)
This commit is contained in:
parent
d0a1c805e9
commit
db6f68d031
@ -451,7 +451,7 @@ func (s *querysrv) getDeviceSeen(device protocol.DeviceID) (time.Time, error) {
|
|||||||
if err := row.Scan(&seen); err != nil {
|
if err := row.Scan(&seen); err != nil {
|
||||||
return time.Time{}, err
|
return time.Time{}, err
|
||||||
}
|
}
|
||||||
return seen, nil
|
return seen.In(time.UTC), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func handlePing(w http.ResponseWriter, r *http.Request) {
|
func handlePing(w http.ResponseWriter, r *http.Request) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user