Commit 4baf49cb authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Fix incorrect default validity of new credentials (917716d1 was incorrect)

parent 51703fd6
......@@ -197,7 +197,7 @@ func (attr *MetadataAttribute) setDefaultValidityDuration() {
func (attr *MetadataAttribute) setExpiryDate(timestamp *Timestamp) error {
var expiry int64
if timestamp == nil {
expiry = attr.SigningDate().AddDate(0, 6, 0).Unix()
expiry = time.Now().AddDate(0, 6, 0).Unix()
} else {
expiry = time.Time(*timestamp).Unix()
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment