Ver Fonte

Truncate to seconds instead of rounding.

Mariano Cano há 7 anos atrás
pai
commit
1a9e8bad74
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      authority/provisioner/keystore.go

+ 1 - 1
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)
 }