Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

date range filter for Live API (getLastVisitsDetails) broken #6808

Closed
FelixSchwarz opened this issue Dec 4, 2014 · 3 comments
Closed

date range filter for Live API (getLastVisitsDetails) broken #6808

FelixSchwarz opened this issue Dec 4, 2014 · 3 comments
Labels
worksforme The issue cannot be reproduced and things work as intended.

Comments

@FelixSchwarz
Copy link
Contributor

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.

@tsteur
Copy link
Member

tsteur commented Dec 23, 2014

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.

@mattab mattab closed this as completed Jan 6, 2015
@mattab mattab added the worksforme The issue cannot be reproduced and things work as intended. label Jan 6, 2015
@mattab
Copy link
Member

mattab commented Jan 6, 2015

Hi @FelixSchwarz feel free to repen if you can reproduce the bug in 2.10.0

@FelixSchwarz
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants