update last_used for access keys

This commit is contained in:
zscholl 2020-03-12 13:07:30 -05:00
commit 35fde06381
3 changed files with 26 additions and 4 deletions

View file

@ -187,7 +187,7 @@ def iso_8601_datetime_with_milliseconds(datetime):
def iso_8601_datetime_without_milliseconds(datetime):
return datetime.strftime("%Y-%m-%dT%H:%M:%S") + "Z"
return None if datetime is None else datetime.strftime("%Y-%m-%dT%H:%M:%S") + "Z"
RFC1123 = "%a, %d %b %Y %H:%M:%S GMT"