From db6f68d0311e3dc7ba6fd26e5b88d2d3335a30e6 Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Tue, 23 Aug 2016 08:41:15 +0200 Subject: [PATCH] cmd/stdiscosrv: Use UTC in database timestamps (fixes #3509) --- cmd/stdiscosrv/querysrv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/stdiscosrv/querysrv.go b/cmd/stdiscosrv/querysrv.go index a0f730997..54dbd6e53 100644 --- a/cmd/stdiscosrv/querysrv.go +++ b/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) {