Update list IAM AccessKeys

Add the creation date, including timezone info, to the data returned
when requesting all AccessKeys for an IAM user.

This fixes #75
This commit is contained in:
graham-hargreaves 2017-05-07 16:02:53 +01:00
commit 835fe2d742
3 changed files with 8 additions and 5 deletions

View file

@ -177,7 +177,7 @@ class AccessKey(BaseModel):
self.status = 'Active'
self.create_date = datetime.strftime(
datetime.utcnow(),
"%Y-%m-%d-%H-%M-%S"
"%Y-%m-%dT%H:%M:%SZ"
)
def get_cfn_attribute(self, attribute_name):