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
Timezone bug? Visits being reported on the correct hour #4380
Comments
When you say "report is showing that the visit occurred at 22:00 on December 12th" what do you mean exactly, where is this displayed? Maybe you could post a screenshot that shows data displayed with the wrong time, it would help me, cheers |
In forum: http://forum.piwik.org/read.php?2,108213 Thanks for the report |
Attachment: |
Attachment: |
Although I'm only using the API, I was able to get the UI to display some pages that highlight this problem. These screenshots were taken on December 13th, 2013 at 21:30 NY Time, the same timezone the websites are configured for. I modified the URLs so that they would display data for December 14th (as highlighted in the URL bar) piwikTZbug.png Above, you will see that visits are being reported for December 14th, 19:00 - 21:00. 4380:piwikTZbug2.png Above, you will see in the visit chart that there have been 36 visits in total recorded for December 14th, 2013. It is still December 13th, 2013 in my timezone and in the website's timezone. |
Maybe this is the same report as: http://forum.piwik.org/read.php?2,108410 NOTE: many users experience this bug! |
report from email:
|
Initial ticket report below: I have a website configured to be on the New York timezone. The server time report (retrieved from getVisitInformationPerServerTime API method) correctly returns visits at the appropriate time for my timezone in most cases, with a very large exception. In cases where it is near the end of the day in NY, but it is the following day UTC, the report shows the visit for the correct hour in the NY timezone, but displays it for that hour on the following day. For example, at 22:00 December 11th NY Time, which would be 03:00 December 12th UTC, the server time report is showing that the visit occurred at 22:00 on December 12th. It seems the time is being adjusted appropriately, but the date itself is not. This is equally affecting standard visit report retrieved from the API as well, with visits late in the day being recorded as visits for the following day. In the case of the site configuration mentioned above, visits I am receiving after 19:00 NY time (00:00 UTC) are being reported as visits from one day in the future, from the NY perspective. Visitors in Real Time report in NOT affected by this. |
from forum: I just updated to 2.0.1 and it's still the same. No data for Previous 30 days (not including today), but there's data for Last 30 days (including today). |
To all users having this issue: Can you please apply following change. Open file core/DataAccess/LogAggregator.php
by:
Then either delete the piwik_archive_*_2013_12 , or wait up to 24 hours to see if the bug is fixed. Does it fix it? |
Bug fix was confirmed in the forums by three users. Great find @capedfuzz! |
…cting log data to aggregate. Includes integration test + doc fixes to Date function.
There is a bug in Piwik 2, that appeared at before 2.0-b11, that results in the report data not being displayed at certain times. The data is tracked correctly. Somehow Piwik reports and API return no data between certain hours.
Visitors in Real Time report reports are NOT affected by this.
This maybe points to a problem in archiving or some code related to archiving. Let's find out and try to release a new version 2.0.2.
Keywords: visits timezone wrong date
The text was updated successfully, but these errors were encountered: