Hello, i have a problem with the datetime format, i have this error :
“Bad Request” status 400
Message : "parsing time “2018-10-04T18:27:28 00:00” as “2006-01-02T15:04:05Z07:00”: cannot parse “” as “Z07:00"”
Yes RFC3339 is Y-m-d\TH:i:sP too, i tested your two lines but not working. I have this : {"error":"Bad Request","status":400,"message":"parsing time \"2018-10-03T22:09:37 02:00\" as \"2006-01-02T15:04:05Z07:00\": cannot parse \"\" as \"Z07:00\""}
I know is not good but is working on this :
$started_date = date(‘Y-m-d’, strtotime($started_at . ’ -1 day’));
$ended_date = date(‘Y-m-d’);
$started_at = $started_date.“T00:00:00Z”;
$ended_at = $ended_date.“T00:00:00Z”;