From 46f595a53a59de9033f04fbdd53920858c213e42 Mon Sep 17 00:00:00 2001 From: Felix Kunde Date: Wed, 23 Feb 2022 19:01:50 +0100 Subject: [PATCH] another cosmetic change --- pkg/cluster/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cluster/sync.go b/pkg/cluster/sync.go index a139c597b..9f84ef3da 100644 --- a/pkg/cluster/sync.go +++ b/pkg/cluster/sync.go @@ -718,7 +718,7 @@ func (c *Cluster) updateSecret( // initialize password rotation setting first rotation date nextRotationDateStr = string(secret.Data["nextRotation"]) - if nextRotationDate, err = time.ParseInLocation(time.RFC3339, nextRotationDateStr, time.Now().UTC().Location()); err != nil { + if nextRotationDate, err = time.ParseInLocation(time.RFC3339, nextRotationDateStr, currentTime.UTC().Location()); err != nil { nextRotationDate, nextRotationDateStr = c.getNextRotationDate(currentTime) secret.Data["nextRotation"] = []byte(nextRotationDateStr) updateSecret = true