Browse Source

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

Audrius Butkevicius 9 years ago
parent
commit
db6f68d031
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cmd/stdiscosrv/querysrv.go

+ 1 - 1
cmd/stdiscosrv/querysrv.go

@@ -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) {