diff --git a/plugins/SegmentEditor/API.php b/plugins/SegmentEditor/API.php index 68a0a87db85..7f149aa608e 100644 --- a/plugins/SegmentEditor/API.php +++ b/plugins/SegmentEditor/API.php @@ -406,7 +406,7 @@ public function getAll($idSite = false) foreach ($segments as &$segmentInfo) { $idSites = !empty($segmentInfo['enable_only_idsite']) ? [(int) $segmentInfo['enable_only_idsite']] : $allIdSites; try { - $segmentObj = new Segment($segmentInfo['definition'], $idSites); + $segmentObj = new Segment($segmentInfo['definition'], $idSites, Date::yesterday(), Date::now()); $segmentInfo['hash'] = $segmentObj->getHash(); } catch (\Exception $ex) { $segmentInfo['hash'] = 'INVALID SEGMENT';