Jira SOAPclient - dateTime fields
===

I'm using a python SOAPpy lib to connect to jira and create issues. It works quite well but I can't figure how to properly format the date (for the 'duedate' field) so Jira eats it.

The code for this is quite simple:

    issue_params = dict()
    issue_params['project'] = key
    issue_params['type'] = str(issue_type)
    issue_params['summary'] = title
    issue_params['duedate'] = '{0}T00:00:00.000Z'.format(finish_plan.strftime("%Y-%m-%d"))
    newissue = self.soap.createIssue(self.auth, issue_params)

for the issue_params['duedate'] I've tried so many different options (YYYY-MM-DD, ISO formats and what you see above, epoch, all sorts of things) but I keep getting the following error when I add the duedate attribute:

    Fault soapenv:Server.userException: 
    java.lang.IllegalArgumentException: argument type mismatch: 
    SOAPpy.Types.structType detail at 75267848>: {'hostname': '*********', 'faultData': ''}>

Please advise.