amazon-alexa-php icon indicating copy to clipboard operation
amazon-alexa-php copied to clipboard

alexa api changes with datetime

Open rjcrystal opened this issue 7 years ago • 1 comments

The alexa testing tool now sends unix timestamp as timestamp in request rather than formatted date. which causes failed to parse string exception and crashes the application.

rjcrystal avatar Jul 13 '17 05:07 rjcrystal

Just for people looking for a quick workaround: Changing line 18 in Request.php from $this->timestamp = new DateTime($data['request']['timestamp']); to $this->timestamp = DateTime::createFromFormat('U', $data['request']['timestamp']); solves this issue.

alexbde avatar Jul 26 '17 05:07 alexbde