Skip to content

Commit

Permalink
Bug: Incorrect time spec value according to kube-downscaler (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKarstoft authored Jun 14, 2023
1 parent 710bdd2 commit 72996ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/k8s/ScaleNamespaceUp.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ func ScaleNamespaceUp(namespace string, additionalTime time.Duration) {
}

t := time.Now().In(location)
now := t.Format("2006-01-02T15:04:05-0700")
end := t.Add(additionalTime).Format("2006-01-02T15:04:05-0700")
now := t.Format("2006-01-02T15:04:05-07:00")
end := t.Add(additionalTime).Format("2006-01-02T15:04:05-07:00")
timeString := fmt.Sprintf("%s-%s", now, end)

logger.Log.Debug().Msgf("timeString is set to: %s", timeString)
Expand Down

0 comments on commit 72996ad

Please sign in to comment.