diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-05-07 16:17:33 +0400 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-05-07 16:17:33 +0400 |
commit | fe3e1fd381442439e883c77d72f1432e5c945310 (patch) | |
tree | ca5b39e03126560c4490ca3674ee520859ca8709 /plugins/VisitTime | |
parent | 7d391431c0787bbe09d50227885b55e4661dec20 (diff) |
Fixes #1338 Visits in Piwik are defined by the last action datetime. Visits by server time used to report by entry visit time, and would therefore report visits that started at 11PM and carried on until midnight the requested day.
Diffstat (limited to 'plugins/VisitTime')
-rw-r--r-- | plugins/VisitTime/VisitTime.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/VisitTime/VisitTime.php b/plugins/VisitTime/VisitTime.php index 983fc27152..99772582eb 100644 --- a/plugins/VisitTime/VisitTime.php +++ b/plugins/VisitTime/VisitTime.php @@ -73,7 +73,7 @@ class Piwik_VisitTime extends Piwik_Plugin $labelSQL = "HOUR(visitor_localtime)"; $this->interestByLocalTime = $archiveProcessing->getArrayInterestForLabel($labelSQL); - $labelSQL = "HOUR(visit_first_action_time)"; + $labelSQL = "HOUR(visit_last_action_time)"; $this->interestByServerTime = $archiveProcessing->getArrayInterestForLabel($labelSQL); $this->interestByServerTime = $this->convertServerTimeToLocalTimezone($this->interestByServerTime, $archiveProcessing); } |