-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Live! widget does not show correct number of visits for 'today' #1375
Comments
Attachment: |
limaeasy, i can't reproduce that. Is your system clock also set to UTC-5?
So there should not be a difference between these two times; Can you help me to reproduce the problem? |
I was now able to reproduce the error: If the Date Object is initalized this way:
If the date object is initialized with a manual date:
So it seems to be an error in the Date factory, we will have to investigate further. UPDATE |
I've observed an issue which seems to be directly related to this. In fact I've been installing and reinstalling Piwik (latest release 0.9) the whole day because I though it didn't work, until I found out that changing the date range makes the data appear. Here the details. I've Piwik installed on a server with the following date settings: date/time support enabled I've two pages added on Piwik for now, going to add a third one (located in the USA) tonight. Page #1 All date ranges work (or so it seems) and show the total number of visits (only 1 for now) Page #2 All date ranges work, except the "Week" range, it remains at 0, both in the dashboard and "all websites" view. But, and here it the curious thing, I've got Live Visitors Plugin enabled, and that one shows the visits for the present day, even when the other widgets show 0. Also, this webpage is on the same server than Piwik, so I am not sure if it has to do with different time zone settings. Turning off Live Visitors Plugin makes no difference, it still fails in the "Week" range. I can do some further investigation once I get the third page online and post the results here if requested. Of course I can provide any other data as long as you tell me what exactly you need. |
(In [3024]) -fixes #1375 |
(In [3026]) refs #1375 - similar fix for visitor log |
(In [3391]) refs #1375 - calculating "last X minutes" vs "last X days" now more similar in implementation |
See attached screenshot.
I believe this is because the Live! plugin API function loadLastVisitorInLastXTimeFromDatabase is not using the website timezone to process the count of visits 'today'.
see bug report in http://forum.piwik.org/index.php?showtopic=9571
Seems not to be correctly fixed, Bug report from #1555:
Piwik 0.8 - When the setting of UTC is -5, the "Live Visitor!" daily summary stops counting at 19.00 hrs. and sets the values for visits and pageviews to 0 (afer 00.00 hrs. the count starts fresh for the new day and works fine until 19.00 hrs. of that day). All other widgets seem not to be having this problem.
The text was updated successfully, but these errors were encountered: