Skip to content

Commit

Permalink
Merge pull request #332 from frezbo/bug/credential_helper_time_format
Browse files Browse the repository at this point in the history
Update to use UTC
  • Loading branch information
mtibben committed Jan 23, 2019
2 parents 4bac7a9 + 3014b15 commit d3ffc27
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 @@ -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 {
Expand Down

0 comments on commit d3ffc27

Please sign in to comment.