Matomo 4: Browser archiving issue for today archive #16220
Labels
Bug
For errors / faults / flaws / inconsistencies etc.
not-in-changelog
For issues or pull requests that should not be included in our release changelog on matomo.org.
Milestone
Custom ini settings:
First I tracked a new page view
Timezone of the site is
America/Los_Angeles
The
log_visit.visit_last_action_time
for this visit is2020-07-20 01:41:44
.I then view the reports like this
The date is
2020-07-19
. However, nothing is being archived sinceLoader::canSkipThisArchive
returnsfalse
becausehasSiteVisitsBetweenTimeframe()
returns false:The
to
andfrom
date is correct. However, in the UI I can't select the 20th July as this day as not started yet. My local time is 1:40PM July 20th NZST.When using Matomo 3 everything seems to work as expected. Once I disable the
canSkipThisArchive
check, it starts the archiving. And interestingly it uses a different time:and it is showing data for this report
It seems bit random that Matomo would use two different times? Somewhere the time is off?
The time that
canSkipThisArchive
used seems correct to me?The
LogAggregator
class uses this method:and
canSkipThisArchive
uses a different way as it uses this logicSomething seems off. Then realised
skipThisArchive
was creating the wrong time as it was generated the time forUTC 0am to 23:59
in the different timezone. When it should have created the UTC time forUS/LA 0am to 23:59
:To make it short, skipThisArchive should use same logic as logaggregator see PR #16221
The text was updated successfully, but these errors were encountered: