Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/DataAccess/Model.php')
-rw-r--r--core/DataAccess/Model.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/DataAccess/Model.php b/core/DataAccess/Model.php
index 40528f60bd..a15cbf337a 100644
--- a/core/DataAccess/Model.php
+++ b/core/DataAccess/Model.php
@@ -327,8 +327,8 @@ class Model
/** @var Period $period */
$dateConditions[] = "(date1 <= ? AND ? <= date2)";
- $bind[] = $period->getDateStart();
- $bind[] = $period->getDateEnd();
+ $bind[] = $period->getDateStart()->getDatetime();
+ $bind[] = $period->getDateEnd()->getDatetime();
$dateConditionsSql = implode(" OR ", $dateConditions);
$periodConditions[] = "(period = 5 AND ($dateConditionsSql))";