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
Visitors in real time data gone after 4PM Piwik 3.0 #11165
Comments
Many users experience this bug in Piwik 3. this is a regression (IIRC we changed something in the Live API which can explain this) |
Can confirm. Having this issue on Piwik 3.0.1. When you have server and Piwik set to EST (America/New_York) the live visitor log and some graphs increment to the next day at 19:00EST/00:00UTC. So I assume it's just Piwik is forgetting to look at the correct date and time somewhere. |
I am seeing this as well. Happy to provide further logs/info if it will help debug. |
Hi guys, Since it used to work I've looked at recent commits that could potentially have some impact related to this bug. The only one I could find was: 029d0ff So -> could you please try to apply back this patch in your Piwik, and check if you still experience this timezone issue? It's a long shot, but it's worth a try. Thanks in advance for your feedback... |
@djsaturn @ZacharyDuBois @collinbarrett Is the patch above working? Please let us know |
Hi @mattab , I have never built Piwik. I am assuming to "apply the patch", you mean get the source at that version, compile, and install? I'd love to help, but I'm not sure I'll have time to do that anytime soon. If it's easier than I am thinking it will be, though, please let me know and I will try to help. Thanks. |
In the file add the following code: if ($date == 'today'
|| $date == 'now'
|| $processedDate->toString() == Date::factory('now', $currentTimezone)->toString()
) {
$processedDate = $processedDate->subDay(1);
} |
Oh, duh, it's php so it's not really compiled code. I live in C# world in my day job... Sure, I can test that tonight. I can't really test that it works until after roughly 5pm CST which is about when I notice that it stops working. I'll get back to you tonight or sometime this weekend with the results. Thanks. |
I think it should be line 485 according to the code (I'm on 3.0.1). I put in the fix and will report back after tonight. |
It looks like this has fixed the issues. |
Agreed. It is working for me with this patch as well. |
Thanks for the feedback @collinbarrett @djsaturn 👍 @ZacharyDuBois do you have a chance to test the patch as well? |
@mattab Just applied it. I'll see tonight if it fixes :) |
@mattab Can confirm that the issue is fixed. |
@mattab UPDATE: That fixes the live widget but the rest of the stats still move on to the next day still (see my original screenshots). |
After I upgraded to version 3.0 some of my reports are off. Visitors in real time disappears after 4PM. When I click on visitor log there is no data. Some reports show that it's the next day. My website is set to America/Los_Angeles. It looks like some reports may be going off UTC time and not the timezone that is
set.
Screen shot taken on 2017-01-05 @ 5PM.
The text was updated successfully, but these errors were encountered: