Due_by when creating tickets

I am stuck on getting the API to create tickets with the time provided. I am using the format YYYY-MM-DDThh"mm:ssZ but this is resuling in tickets a a due date of an hour later that the provided timestamp?
Am I missing something obvvious?
Thanks