cmd/stdiscosrv: Use UTC in database timestamps (fixes #3509)

This commit is contained in:
Audrius Butkevicius 2016-08-23 08:41:15 +02:00 committed by Jakob Borg
parent d0a1c805e9
commit db6f68d031

View File

@ -451,7 +451,7 @@ func (s *querysrv) getDeviceSeen(device protocol.DeviceID) (time.Time, error) {
if err := row.Scan(&seen); err != nil {
return time.Time{}, err
}
return seen, nil
return seen.In(time.UTC), nil
}
func handlePing(w http.ResponseWriter, r *http.Request) {