You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just noticed funny things when using the JSON Live API (Piwik 2.9.1). It seems that the date range filter does not work correctly.
For example this URL returns all visits correctly: http://.../piwik/index.php?module=API&method=Live.getLastVisitsDetails&format=JSON&idSite=1&period=range&date=2014-12-01,2014-12-31&expanded=1&token_auth=...
However when I change the date range to date=2014-12-06,2014-12-31 it still returns all December visits (obviously nothing has been tracked for Dec 06 which is the day after tomorrow as the time of writing). Interestingly as soon as I put in any start date >= 8 (e.g. date=2014-12-08,2014-12-31) I get the expected empty response.
The text was updated successfully, but these errors were encountered:
I had a look at the code and it seems to work correct. What is the timezone of your website? For example when I pass the above mentioned date actually 2014-12-05 11:00:00 will be used as start date as the timezone of my websites is New Zealand / Auckland.
yes, sure. Sorry for not following up quickly. Unfortunately I was unable to reproduce it shortly after christmas but I'll try to get a new test case (with db dump) with the new version.
I just noticed funny things when using the JSON Live API (Piwik 2.9.1). It seems that the date range filter does not work correctly.
For example this URL returns all visits correctly:
http://.../piwik/index.php?module=API&method=Live.getLastVisitsDetails&format=JSON&idSite=1&period=range&date=2014-12-01,2014-12-31&expanded=1&token_auth=...
However when I change the date range to
date=2014-12-06,2014-12-31
it still returns all December visits (obviously nothing has been tracked for Dec 06 which is the day after tomorrow as the time of writing). Interestingly as soon as I put in any start date >= 8 (e.g.date=2014-12-08,2014-12-31
) I get the expected empty response.The text was updated successfully, but these errors were encountered: