瀏覽代碼

Truncate to seconds instead of rounding.

Mariano Cano 7 年之前
父節點
當前提交
1a9e8bad74
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  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)
 }