createdAfter parameter in api/issues/search not working for the datetime

I am using Sonarqube 7.7
Whenever I hit api/issues/search?componentKeys=AgentBrowserUI&pageSize=1&statuses=OPEN,REOPENED,CONFIRMED&resolved=false&createdAfter=2017-10-19T13:00:00+0200 I am getting the following exception

“errors”: [
“msg”: “Date ‘2017-10-19T13:00:00 0200’ cannot be parsed as either a date or date+time”

What is the correct format to support the datetime field in createdAfter?

Hi, the correct format is yyyy-MM-dd'T'HH:mm:ssZ, so in your example createdAfter=2017-10-19T13:00:00+0200 is correct, but you need to url-encode the + character to %2b : createdAfter=2017-10-19T13:00:00%2b0200

1 Like

Thanks that worked for me.