REST API GET History Process Failed to parse date on any of the date-time parameters

Using Postman when running REST API GET Historic-process-instance using any of the query date-time parameters

I get

{
“message”: “Bad request”,
“exception”: “Failed to parse date 2020-03-17T14:49:45.494GMT-04:00”
}

However …

Using Postman I can successfully run the following REST API POST QUERY Historic-process-instance

{
“processDefinitionKey”: “MOWResearchRefunds”,
“startedAfter”: “2020-03-17T14:49:45.494-04:00”,
“includeProcessVariables”: “false”
}

How are you passing the request parameters in the URL? Any reason why you prefer the GET, if the POST gives you the same?

/process-api/history/historic-process-instances/?includeProcessVariables=false&sort=startTime&order=desc&finished=true&size=9999&startedAfter=2020-03-17T14:49:45.494-04:00&businessKey=MOWResearchRefunds

Mainly just curious how to correctly pass dates in the GET API using parameters instead of using a POST Query and passing through JSON

Any solution? I have the same problem

Request URL:
localhost:8080/process-api/history/historic-process-instances?size=10&start=0&order=desc&sort=startTime&startedAfter=2021-02-11T00:00:00.000Z&includeProcessVariables=true
exception: "Failed to parse date 2021-02-11T00:00:00.000-00:00"
message: "Bad request"

I ended up using the POST

https://XXXXXXXX/process-api/query/historic-process-instances

with the following json

{

“processDefinitionKey”: “xxxxxxxxxx”,

“startedAfter”: “2020-06-15T00:00:00.000”,

“startedBefore”: “2021-06-18T00:00:00.000”,

“includeProcessVariables”: “true”,

“size”:“50”

}