From 1a9e8bad74a94de57e07d9e28d983ad6b826cd8a Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Mon, 11 Mar 2019 18:13:20 -0700 Subject: [PATCH] Truncate to seconds instead of rounding. --- authority/provisioner/keystore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authority/provisioner/keystore.go b/authority/provisioner/keystore.go index 2c03b7ba..2f11114a 100644 --- a/authority/provisioner/keystore.go +++ b/authority/provisioner/keystore.go @@ -131,5 +131,5 @@ func getCacheJitter(age time.Duration) time.Duration { } func getExpirationTime(age time.Duration) time.Time { - return time.Now().Round(time.Second).Add(age) + return time.Now().Truncate(time.Second).Add(age) }