From 1dfeb25864be52dc706b26de072909c57ca94744 Mon Sep 17 00:00:00 2001 From: Michael Tibben Date: Sat, 12 Sep 2020 06:39:57 +1000 Subject: [PATCH] Use iso8601 helper --- cli/exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/exec.go b/cli/exec.go index 244938c38..766134f9e 100644 --- a/cli/exec.go +++ b/cli/exec.go @@ -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)