helpscout / helpscout-api-php

PHP Wrapper for the Help Scout API
MIT License
99 stars 62 forks source link

Fixed formatting datetime for send to API #184

Closed grogy closed 5 years ago

grogy commented 5 years ago

Hello,

when is send datetime to API with full ISO format like as 2004-02-12T15:19:21+00:00 so API return error:

Bad request
Invalid date - expected ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss'Z') 

PR fixed this bug with manual format datetimes. I tried it with production HelpScout API

bkuhl commented 5 years ago

Thank you for bringing this up. I've actually created a different PR which addresses the failures related to static code analysis in addition to the date issue. See https://github.com/helpscout/helpscout-api-php/pull/185