matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.7k stars 2.62k forks source link

Matomo shows visits that occured at Midnight (Start of next day) in visits log for previous day #17516

Open Starker3 opened 3 years ago

Starker3 commented 3 years ago

Expected Behavior

When viewing the visits log for example for the 7th of February, we would expect that visits that occur at or after midnight (Start of the the next day) to not be show in the visits log.

Current Behavior

Any visits that are recorded at exactly Midnight which is the start of the day for the 8th of February for example are shown in the visits log for the date of the 7th, but is showing the correct date for the next day: image

Possible Solution

According to the code here: https://github.com/matomo-org/matomo/blob/2b35b46a0988f8c3b6f848c59be8d7d918965a52/plugins/Live/Model.php#L601-L603 This seems to be intentional but for unknown reasons.

Steps to Reproduce (for Bugs)

  1. View visits log where visits are recorded at exactly midnight for a specific day

Context

Your Environment

tsteur commented 3 years ago

kind of refs https://github.com/matomo-org/matomo/issues/9053 https://github.com/matomo-org/matomo/issues/11165

Might have been added 10 years ago to fix some timezone issues but it's not 100% clear.