Fix storing of zero value revocation timestamp
This commit is contained in:
parent
40b3219c7e
commit
9c17a6730f
1 changed files with 3 additions and 1 deletions
|
@ -69,12 +69,14 @@ type indexEntry struct {
|
|||
func (ie *indexEntry) String() string {
|
||||
var revoked, fileName string
|
||||
|
||||
if ie.revokedAt != nil {
|
||||
if ie.revokedAt != nil && !ie.revokedAt.IsZero() {
|
||||
revoked = fmt.Sprintf("%s,%s", ie.revokedAt.Format(TimeSpec), ie.revocationReason)
|
||||
}
|
||||
|
||||
if ie.fileName == "" {
|
||||
fileName = "unknown"
|
||||
} else {
|
||||
fileName = ie.fileName
|
||||
}
|
||||
|
||||
return strings.Join([]string{
|
||||
|
|
Loading…
Reference in a new issue