From 8cd89cb8477dc7fcf003292bcba107bce4208ba7 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 21 Sep 2020 15:55:56 +0300 Subject: [PATCH] app/vmalert: remove unneeded UTC() call UTC() doesn't change the underlying timestamp, so the call isn't needed here --- app/vmalert/datasource/vm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vmalert/datasource/vm.go b/app/vmalert/datasource/vm.go index 3db5552d07..88458b8276 100644 --- a/app/vmalert/datasource/vm.go +++ b/app/vmalert/datasource/vm.go @@ -75,7 +75,7 @@ func (s *VMStorage) Query(ctx context.Context, query string) ([]Metric, error) { ) q := s.queryURL + url.QueryEscape(query) if s.lookBack > 0 { - lookBack := time.Now().UTC().Add(-s.lookBack) + lookBack := time.Now().Add(-s.lookBack) q += fmt.Sprintf("&time=%d", lookBack.Unix()) } req, err := http.NewRequest("POST", q, nil)