mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 18:18:30 +00:00
Truncate to seconds instead of rounding.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user