Quellcode durchsuchen

Merge branch 'develop' into gp3-support

Ajay Tripathy vor 3 Jahren
Ursprung
Commit
6a47d6510d
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      pkg/kubecost/window.go

+ 2 - 2
pkg/kubecost/window.go

@@ -278,8 +278,8 @@ func parseWindow(window string, now time.Time) (Window, error) {
 	if match != nil {
 		s, _ := strconv.ParseInt(match[1], 10, 64)
 		e, _ := strconv.ParseInt(match[2], 10, 64)
-		start := time.Unix(s, 0)
-		end := time.Unix(e, 0)
+		start := time.Unix(s, 0).UTC()
+		end := time.Unix(e, 0).UTC()
 		return NewWindow(&start, &end), nil
 	}