From 72996ade7b73f399a6ef321189772019bf9c7a25 Mon Sep 17 00:00:00 2001 From: Oliver Karstoft Date: Wed, 14 Jun 2023 08:22:19 +0200 Subject: [PATCH] Bug: Incorrect time spec value according to kube-downscaler (#50) --- pkg/k8s/ScaleNamespaceUp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/k8s/ScaleNamespaceUp.go b/pkg/k8s/ScaleNamespaceUp.go index ac6a71a..3ccabf9 100644 --- a/pkg/k8s/ScaleNamespaceUp.go +++ b/pkg/k8s/ScaleNamespaceUp.go @@ -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)