app/vmalert: remove unneeded UTC() call

UTC() doesn't change the underlying timestamp, so the call isn't needed here
This commit is contained in:
Aliaksandr Valialkin 2020-09-21 15:55:56 +03:00
parent d111969d39
commit 8cd89cb847

View File

@ -75,7 +75,7 @@ func (s *VMStorage) Query(ctx context.Context, query string) ([]Metric, error) {
) )
q := s.queryURL + url.QueryEscape(query) q := s.queryURL + url.QueryEscape(query)
if s.lookBack > 0 { if s.lookBack > 0 {
lookBack := time.Now().UTC().Add(-s.lookBack) lookBack := time.Now().Add(-s.lookBack)
q += fmt.Sprintf("&time=%d", lookBack.Unix()) q += fmt.Sprintf("&time=%d", lookBack.Unix())
} }
req, err := http.NewRequest("POST", q, nil) req, err := http.NewRequest("POST", q, nil)