@dev-101 opened this Issue on August 29th 2018

Hi, after upgrading to 3.6.0 when we use "period=day&date=today" after ? in url parameters, we no longer have selected/highlighted current (today) date.

If I replace "today" with actual (hard coded) current date value, then it is shown as a square around current date.



I currently don't have earlier 3.5.x version installed (I upgraded all instances at once, what a mistake!) to verify this, but I am pretty sure it worked before. In Piwik 2.x which I still keep works fine.

@sgiehl commented on August 30th 2018 Member

Thanks for the report.
That also doesn't work anymore with yesterday and is reproducible on our demo.

@mcmarable commented on August 30th 2018

Noted same thing #13367

@dev-101 commented on September 10th 2018

Any ETA on new release? This bug alone should be enough to push new version, as it skews daily reports because of date/timezone mismatch.


@mcmarable commented on September 17th 2018

@dev-101 Agree... Does anyone have a temporary solution of fix?

@dev-101 commented on September 17th 2018

Fix is already applied, see above changes #13373

You can manually replace that file or add code changes, but Matomo uses caching, and another omission is that there is no way to clear or regenerate template cache files, unless I missed that option somehow.

@mcmarable commented on September 17th 2018

I have edited the file specified in #13373 and cleared all caches and my install is still exhibiting the exact same behavior.

@sgiehl commented on September 17th 2018 Member

@mcmarable did you clear the tmp directory of Matomo and your browser cache after applying the patch?

Due date of 3.6.1 is currently September 22...

@mcmarable commented on September 17th 2018

@sgiehl Apologies, yes I did clear out /tmp but hard clearing the browser cache is what did the trick. Thank you

@dev-101 commented on September 17th 2018

Not sure if it is related, but now default "Visits over time" widget does not include "today", even when it is set to "Last 30 days (including today)". Removing tmp/cache doesn't help. Will wait until server's time pass the new day mark, if it makes any difference.

@diosmosis commented on September 17th 2018 Member

@dev-101 can you post a screenshot (including an open calendar to see the selected date) + URL w/ any sensitive info redacted? Also would be good to know what timezone your website is in & what timezone you are currently in.

@dev-101 commented on September 17th 2018

I can confirm that this is not related to the fix for this particular issue (day highlight). Reverting changes did not fix the problem with today reports -1 day behind.

My server's time is synchronized with my local time down to the ~second. However, for some reason Matomo is working in GMT/UTC.

I have checked zones and dates, and all checks up, including PHP CLI, and this was not the problem in 3.5.1 and I haven't changed anything in php/server config in the meantime.

@dev-101 commented on September 17th 2018

I have checked all 3.6.0 installations on different servers, all have the same problem I didn't notice before.
3.5.1 that I forgot to upgrade in one domain is working fine without this problem.

@dev-101 commented on September 18th 2018

I've noticed that in 3.5.1 under Admin Dashboard > Websites > Settings we could select the city, but in 3.6.0 only the country. Although this change alone should not affect small countries, which are likely in the same timezone, this means that some changes made there might be responsible for this problem, and unrelated to the original issue reported here.

UTC time now turned to new date/day, and so Matomo 3.6.0 "correctly" respects "today" option/setting.

@diosmosis commented on September 18th 2018 Member

@dev-101 just in case you're not aware, every website has a configured timezone:


Reports are shown for dates in that timezone (so 'today' is today in the website's timezone).

EDIT: posted a couple minutes too late. You should still be able to select the city (the same timezones should be available), I think they are named differently (as I understand it, the naming is less redundant).

@dev-101 commented on September 18th 2018

Thanks, just checked: all settings are the same (global + per website) in all instances that I run.
Time zones are all "wrong" (read: set correctly but still run as GMT/UTC) in all cases of 3.6.0 (updated from 3.5.1, not fresh installs).

@dev-101 commented on September 18th 2018

"Visitors in Real-time" displays correct times, this seems to affect only some widgets like "Visits Over Time", tables like Behaviour > Pages etc.

@diosmosis commented on September 18th 2018 Member

@dev-101 I was able to reproduce the issue w/ evolution graphs and created a fix here: https://github.com/matomo-org/matomo/pull/13445. Looks like this has been a problem for a while, not sure why it wasn't apparent before.

Was not able to reproduce this issue w/ other types of reports that only span one period (like table reports).

@diosmosis commented on September 18th 2018 Member

@dev-101 Actually hold off on testing that one for the moment.

EDIT: you can check out the PR now.

@dev-101 commented on October 18th 2018


While date highlighting is fixed, Visits Over Time widget still works wrong. It is 1:00 AM here and the widget's chart still counts for the previous day.

This Issue was closed on August 31st 2018
Powered by GitHub Issue Mirror