diff --git a/app/destinations/resources/classes/destinations.php b/app/destinations/resources/classes/destinations.php index 29b00b522c..60ba3b3084 100644 --- a/app/destinations/resources/classes/destinations.php +++ b/app/destinations/resources/classes/destinations.php @@ -1134,6 +1134,9 @@ if (!class_exists('destinations')) { $time_zone = date_default_timezone_get(); } + //set the time zone for php + date_default_timezone_set($time_zone); + //build the date range if (!empty($this->start_stamp_begin) || !empty($this->start_stamp_end)) { unset($this->quick_select); @@ -1236,6 +1239,7 @@ if (!class_exists('destinations')) { } $sql .= " and direction = 'inbound' \n"; $sql .= " and caller_destination is not null \n"; + $sql .= " leg = 'a' \n"; $sql .= $sql_date_range ?? ''; $sql .= ") as c \n";