Query to modified date in tasks API get the error with timestamp

Hello,
I’m getting this error:
Timestamp must be in ISO-8601 (yyyy-mm-ddThh:mm:ss+zzzz) format, not: 2020-10-03T10:39:39 00:00

I’m making a query for the last tasks modified in 5 hours. The modified date in PHP that I’ve used is this:
$fromdate = ( new DateTime( ‘-5 hour’ ) )->format( ‘c’ );

But it gets the error mentioned before.
How could i make the date with ISO8601?

Thanks!

The easiest is to convert it in UTC in your app. and send it in utc followed by “Z”, like
2020-10-03T18:14:13Z

In your sample, it also looks like there’s a space instead of a “+” between seconds and timezone offset.

it’s strange becouse I’m sending already with + but gives the error. I’m trying the Z one. Thanks!