Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alexa api changes with datetime #5

Open
rjcrystal opened this issue Jul 13, 2017 · 1 comment
Open

alexa api changes with datetime #5

rjcrystal opened this issue Jul 13, 2017 · 1 comment

Comments

@rjcrystal
Copy link

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.

@alexbde
Copy link

alexbde commented Jul 26, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants