awscli-mfa icon indicating copy to clipboard operation
awscli-mfa copied to clipboard

AWS_SESSION_EXPIRY is set to -1 when ISO8601 timestamp returned uses +00:00 instead of Z

Open bryanchug opened this issue 5 years ago • 1 comments

Using Ubuntu 20.04, the timestamp I'm getting uses +00:00 instead of Z.

Example: 2020-08-05T11:52:00+00:00 instead of 2020-08-05T11:52:00Z

Quick fix is to just update the regex matcher to also honor +00:00 as if it's Z since Z is the same as +00:00 AFAIK.

bryanchug avatar Aug 05 '20 12:08 bryanchug

Using Ubuntu 20.04, the timestamp I'm getting uses +00:00 instead of Z.

Example: 2020-08-05T11:52:00+00:00 instead of 2020-08-05T11:52:00Z

Quick fix is to just update the regex matcher to also honor +00:00 as if it's Z since Z is the same as +00:00 AFAIK.

This issue has been driving me nuts for hours. Just wanted to thank you for pointing out the problem, and submitting a PR with the solution.

joryirving avatar Apr 13 '21 20:04 joryirving