mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 10:18:34 +00:00
Truncate to seconds the startTime to simplify tests.
This commit is contained in:
@@ -103,7 +103,8 @@ func (a *Authority) init() error {
|
||||
}
|
||||
}
|
||||
|
||||
a.startTime = time.Now()
|
||||
// JWT numeric dates are seconds.
|
||||
a.startTime = time.Now().Truncate(time.Second)
|
||||
// Set flag indicating that initialization has been completed, and should
|
||||
// not be repeated.
|
||||
a.initOnce = true
|
||||
|
||||
Reference in New Issue
Block a user