From 8e20182015b22a53a8d811c70593c70151f09bfd Mon Sep 17 00:00:00 2001 From: wejdross Date: Mon, 22 Apr 2024 14:44:27 +0200 Subject: [PATCH] Update pkg/cmd/spks.go Co-authored-by: Kidswiss --- pkg/cmd/spks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/spks.go b/pkg/cmd/spks.go index 77932c7..e10079e 100644 --- a/pkg/cmd/spks.go +++ b/pkg/cmd/spks.go @@ -65,7 +65,7 @@ func SpksCMD() *cli.Command { // this variable is necessary to query Prometheus, with timerange [1d:1d] it returns data from 1 day up to midnight startOfToday := time.Date(time.Now().Year(), time.Now().Month(), time.Now().Day(), 0, 0, 0, 0, location) startYesterdayAbsolute := time.Date(time.Now().Year(), time.Now().Month(), time.Now().Day()-1, 0, 0, 0, 0, location).In(time.UTC) - endYesterdayAbsolute := time.Date(time.Now().Year(), time.Now().Month(), time.Now().Day(), 23, 59, 59, 0, location).Add(-(time.Hour * 24)).UTC() + endYesterdayAbsolute := time.Date(time.Now().Year(), time.Now().Month(), time.Now().Day()-1, 23, 59, 59, 0, location).In(time.UTC) logger.Info("Getting specific metric from thanos")