Skip to content

Commit

Permalink
Use iso8601 helper
Browse files Browse the repository at this point in the history
  • Loading branch information
mtibben committed Sep 11, 2020
1 parent 98a9916 commit 1dfeb25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func execCredentialHelper(input ExecCommandInput, config *vault.Config, creds *c
}

if credsExpiresAt, err := creds.ExpiresAt(); err == nil {
credentialData.Expiration = credsExpiresAt.UTC().Format(time.RFC3339)
credentialData.Expiration = iso8601.Format(credsExpiresAt)
}

json, err := json.Marshal(&credentialData)
Expand Down

0 comments on commit 1dfeb25

Please sign in to comment.