Custom ini settings:
[Debug] always_archive_data_day = 1 [General] time_before_today_archive_considered_outdated = 1
First I tracked a new page view
Timezone of the site is
log_visit.visit_last_action_time for this visit is
I then view the reports like this
The date is
2020-07-19. However, nothing is being archived since
hasSiteVisitsBetweenTimeframe() returns false:
from 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?
LogAggregator class uses this method:
canSkipThisArchive uses a different way as it uses this logic
Something seems off. Then realised
skipThisArchive was creating the wrong time as it was generated the time for
UTC 0am to 23:59 in the different timezone. When it should have created the UTC time for
US/LA 0am to 23:59:
To make it short, skipThisArchive should use same logic as logaggregator see PR https://github.com/matomo-org/matomo/pull/16221