From 8253454b37ef181393a126372321ac4b56b1d4ac Mon Sep 17 00:00:00 2001 From: Tim Ross Date: Mon, 31 Jan 2022 09:17:44 -0500 Subject: [PATCH] Fix panic running TestIntegration/RotateChangeSigningAlg backport of #9316 --- lib/auth/rotate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/auth/rotate.go b/lib/auth/rotate.go index 8be9803ba6809..97469bb45cb8b 100644 --- a/lib/auth/rotate.go +++ b/lib/auth/rotate.go @@ -650,7 +650,7 @@ func completeRotation(clock clockwork.Clock, ca types.CertAuthority) { rotation.Started = time.Time{} rotation.State = types.RotationStateStandby rotation.Phase = types.RotationPhaseStandby - rotation.LastRotated = clock.Now() + rotation.LastRotated = clock.Now().UTC() rotation.Mode = "" rotation.Schedule = types.RotationSchedule{} ca.SetRotation(rotation)