forked from TrueCloudLab/certificates
Truncate to seconds instead of rounding.
This commit is contained in:
parent
b77621675c
commit
1a9e8bad74
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue