diff --git a/cli/exec.go b/cli/exec.go index 239d0769f..e38d1c3af 100644 --- a/cli/exec.go +++ b/cli/exec.go @@ -140,7 +140,7 @@ func ExecCommand(app *kingpin.Application, input ExecCommandInput) { SessionToken: val.SessionToken, } if !input.NoSession { - credentialData.Expiration = time.Now().Add(input.Duration).Format("2006-01-02T15:04:05Z") + credentialData.Expiration = time.Now().UTC().Add(input.Duration).Format("2006-01-02T15:04:05Z") } json, err := json.Marshal(&credentialData) if err != nil {