Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
4baf49cb
Commit
4baf49cb
authored
Feb 09, 2018
by
Sietse Ringers
Browse files
Fix incorrect default validity of new credentials (
917716d1
was incorrect)
parent
51703fd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
attributes.go
View file @
4baf49cb
...
...
@@ -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
()
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment