urbanairship/python-library — pull request #19 by Ofir-Purple (2014-05-15 16:11:31+00:00)
Title: Feedback API: Check that "since" is a date and not a datetime

UrbanAirship's feedback API documentation clearly states that the "since" object should be of the form 2014-05-15.

When using the given example ( airship.feedback(datetime.datetime.utcnow() - datetime.timedelta(days=1)) ), the API returns a 400 bad request. The reason is that there's a time portion to the "since" parameter. E.g. 2014-05-15T15:23:45.238315 .

This fix ensures that even if a datetime object is received, the request to UA's server will only have the date portion of "since".

The fix was made inside the feedback function instead of to the documentation in order to maintain backwards compatibility.