From 3014b15b7485fcf33f83fc3e0d95c89b6edad084 Mon Sep 17 00:00:00 2001 From: Noel Georgi Date: Wed, 23 Jan 2019 10:36:24 +0530 Subject: [PATCH] Update to use UTC --- cli/exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {