monitor service getInstanceListCustomData error

Hi All,

I am using the built-in service pub.monitor.process.instance:getInstanceListCustomData to get the list of all the process instances that meet the custom data specified in the input.
But the problem that I am facing is this service doesn’t take into consideration the dateCreated and fromDate and toDate fields specified in the input.

It gives me the list of all the process instances even though, I try to limit the result by setting the dateCreated as Yesterday/LastWeek etc.Even if I set the fromDate and toDate fields it returns all the process instances.

Request you to please help me if anyone has faced this issue and know of any resolution.