Correct time stamp format in Alexa responses (#70267)

This commit is contained in:
Erik Montnemery 2022-04-22 17:44:59 +02:00 committed by GitHub
parent 56921a41bf
commit e45d4d53dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 283 additions and 244 deletions

View file

@ -28,7 +28,9 @@ ATTR_REDIRECTION_URL = "redirectionURL"
SYN_RESOLUTION_MATCH = "ER_SUCCESS_MATCH"
DATE_FORMAT = "%Y-%m-%dT%H:%M:%S.0Z"
# Alexa requires timestamps to be formatted according to ISO 8601, YYYY-MM-DDThh:mm:ssZ
# https://developer.amazon.com/es-ES/docs/alexa/device-apis/alexa-scenecontroller.html#activate-response-event
DATE_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
API_DIRECTIVE = "directive"
API_ENDPOINT = "endpoint"