Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Visitor Log to show one day too early in some cases #2387

mattab opened this Issue · 7 comments

4 participants


See example in forum

It is a small regression following recent fixes.


Guess the problem is here:

If period is day it will always show the day before!


PLease also refer to [,76195] - I already had a talk with Matt about this statement. It seems like deleting the "->subDay(1)" call would rise another issue.


I have commmitted a patch for this issue, see the few lines following:

I haven't tested much, in particular with timezones like GMT-8 and GMT+8 but these few lines should help


(In [4710]) Fixes #2387 - test is most welcome!


Thanks for the fix, but I'd like to know if it is ok just overwrite the stock file(API.php) with the trunk.

In stock 1.4, the "->subday(1)" makes errors on day/week/month/year selection on specific dates in Visitor Log page, please check my test result on (note: user-defined range does not have errors),76196,page=1#msg-77084


It's not going to work to reuse the API.php file like this, but you can just try to change the IF block that starts at line: then it should work with 1.4

Your tests are very appreciated.. I am not 100% sure that all issues are fixed!


so far so good it seems to have fixed my issues will report back if I find anything.

@mattab mattab added this to the 1.5 - Piwik 1.5 milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.