I'm using the historicdata API in order to retrieve one entry for the whole time interval in a day. The request is as follows:

http://coreAddress/api/historicdata.xml?id=sensorId&avg=30600&sdate=2017-11-03-08-00-00&edate=2017-11-03-16-30-00

The returned XML contains a single entry, as expected, but the time interval starts and ends earlier with 30 minutes:

<histdata totalcount="1" listend="1">
<prtg-version>16.3.24.5302</prtg-version>
<item>
<datetime>11/3/2017 7:30:00 AM - 4:00:00 PM</datetime>
<datetime_raw>43042.5833333333</datetime_raw>
[...]
</item>
</histdata>

Any suggestions for working around this issue?


Article Comments

Hi there,

What timezone is configured for the account you're using?


Kind regards,
Stephan Linke, Tech Support Team


Nov, 2017 - Permalink

Hello, The timezone is set to UTC + 02:00. I wouldn't believe that to be the issue, as calling the method with different intervals behaves as expected.

Kind regards, Andrei


Nov, 2017 - Permalink

This seems to be a bug in the reporting engine, I can recreate the issue with my local installation of the current preview branch. I'll update you once I have an update (or explanation) from a developer.

Note: The response may take a bit, depending on their schedule.

Kind regards,
Stephan Linke, Tech Support


Nov, 2017 - Permalink

Could you please keep me updated regarding the issue, whenever possible? Unfortunately, the issue is holding us back from developing an internal tool based on PRTG historical data.

Thank you, Andrei


Dec, 2017 - Permalink

Hi Andrei,

A bug ticket for the issue has been filed, but it's still being analysed. I'll keep you posted.


Kind regards,
Stephan Linke, Tech Support Team


Dec, 2017 - Permalink