Ok, I got everything back to default settings in the app, and everything looks good in the browser console. What led me down this road was issues in the API timestamps (to answer your question from above, kind of) when trying to retrieve some basic data about a scan. At some point I must have gotten things all messed up, which resulted in the GUI looking off as well, but it is working as expected now.
The timezone was having an impact when I try to retrieve data via the API, it does not appear to grab data between the “to” and “from” timeframe I’m passing in as parameters in the URL. This is not really a “timezone” issue any more, it is more of a “I’m probably messing things up when trying to retrieve data between a given time in the API” issue.
When I retrieve the entire day, the values are pulled back as expected:
URL to pull back the entire day’s worth of data:
Data retrieved for the entire day query above:
2022-09-27T19:38:38+0000 coverage=0.0 project-key=EComm-Admin duplicated_blocks=299 code_smells=2448 bugs=55 vulnerabilities=28 sqale_rating=1.0 reliability_rating=5.0 security_rating=2.0
When I try to retrieve the last hour’s worth of data, the above activity should also be returned in the response, but it is not.
URL to pull back the last hour’s worth of data (I’m using GMT time in my script):
No results were returned.
Given the documentation, I also tried appending several TimeZone options to the end of the “to” and “from” parameters, but nothing there seemed to work either: 2022-09-27T19:09+0000, 2022-09-27T19:09-0500, etc.
Am I using the API query in the wrong way?