core sts endpoints completed
This commit is contained in:
parent
124bc04598
commit
212d9c7abe
11 changed files with 201 additions and 3 deletions
|
|
@ -69,3 +69,12 @@ class convert_flask_to_httpretty_response(object):
|
|||
# result is a status, headers, response tuple
|
||||
status, headers, response = result
|
||||
return response, status, headers
|
||||
|
||||
|
||||
def iso_8601_datetime(datetime):
|
||||
return datetime.strftime("%Y-%m-%dT%H:%M:%SZ")
|
||||
|
||||
|
||||
def rfc_1123_datetime(datetime):
|
||||
RFC1123 = '%a, %d %b %Y %H:%M:%S GMT'
|
||||
return datetime.strftime(RFC1123)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue