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

Report for "today" is not the same as report for any date explicitly selected #13786

Closed
ghost opened this issue Dec 1, 2018 · 7 comments
Closed
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@ghost
Copy link

ghost commented Dec 1, 2018

I have my Matomo dashboard set to default to "today", and the string "today" appears in a query field of the URL when I go to the dashboard. When I go to the dashboard, I get the current day's stats under "Visits overview" but the previous day's graph under "Visits over time," and the previous day's date is shown in the drop-down date selector widget. But if I manually select the current date, I get the current date shown in the URL and the date selector, and the graph shows today's statistics. Choosing the string value "today" as a default has a different effect from explicitly selecting the current date; some parts of the dashboard use the previous day's date when "today" is the default.

See screenshot - Matomo is configured to use "today," as seen in the URL; and as seen in the live visitor log, today is December 1; but the date-selector widget has defaulted to November 30.

screenshot_2018-12-01_17-15-44

I don't believe that this is caused by a time zone issue; all my time zones match, and all aspects of it appear to roll over at midnight local time every day. It seems to be new behaviour in 3.7.0; the previous version correctly showed today's stats in all parts of the dashboard when so configured.

@tsteur
Copy link
Member

tsteur commented Dec 1, 2018

from which version did you update @mskala ? maybe you have any thoughts @diosmosis ?

@ghost
Copy link
Author

ghost commented Dec 1, 2018

As far as I know, the previous version (3.6.1).

@diosmosis
Copy link
Member

Think this was an issue before 3.6.1, not sure why it's come back. @mskala could you tell me what your computer's timezone is and what the website's timezone is? I can try and reproduce the issue.

@ghost
Copy link
Author

ghost commented Dec 2, 2018

Both are "America/Toronto".

@diosmosis
Copy link
Member

Am able to reproduce the issue, looking into it now.

@diosmosis diosmosis added this to the 3.8.0 milestone Dec 2, 2018
@diosmosis diosmosis added the Bug For errors / faults / flaws / inconsistencies etc. label Dec 2, 2018
@diosmosis
Copy link
Member

@mskala created a fix in this PR: #13787

@ghost
Copy link
Author

ghost commented Dec 3, 2018

I don't think it's completely fixed after all. The "Visits Over Time" graph is still showing yesterday as the most recent day now (shortly after midnight) even though the drop-down date widget has updated to the new date; and, as before, manually selecting today's date gives a different result showing the current day's data in the graph.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

2 participants