Explorar o código

Merge pull request #1694 from saweber/saweber/json-allocation-utc

Niko Kovacevic %!s(int64=3) %!d(string=hai) anos
pai
achega
0ea8217b08
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      pkg/kubecost/allocation_json.go

+ 2 - 2
pkg/kubecost/allocation_json.go

@@ -62,8 +62,8 @@ func (aj *AllocationJSON) BuildFromAllocation(a *Allocation) {
 	aj.Name = a.Name
 	aj.Properties = a.Properties
 	aj.Window = a.Window
-	aj.Start = a.Start.Format(time.RFC3339)
-	aj.End = a.End.Format(time.RFC3339)
+	aj.Start = a.Start.UTC().Format(time.RFC3339)
+	aj.End = a.End.UTC().Format(time.RFC3339)
 	aj.Minutes = formatFloat64ForResponse(a.Minutes())
 	aj.CPUCores = formatFloat64ForResponse(a.CPUCores())
 	aj.CPUCoreRequestAverage = formatFloat64ForResponse(a.CPUCoreRequestAverage)