'last' => FILTER_SANITIZE_STRING
)
);
- $from = date('Y-m-d', strtotime($month['start']));
- $to = date('Y-m-d', strtotime($month['last']));
+ $start = preg_replace( '%\(.*\)%', '', $month['start'] );
+ $last = preg_replace( '%\(.*\)%', '', $month['last'] );
+
+ $from = date('Y-m-d', strtotime($start));
+ $to = date('Y-m-d', strtotime($last));
+
+ echo '<pre>$from: ' . print_r( $from, true ) . '</pre>';
+ echo '<pre>$to: ' . print_r( $to, true ) . '</pre>';
+ echo '<pre>$month: ' . print_r( $month, true ) . '</pre>';
+ exit;
$this->dateRange = "start_time BETWEEN CAST('{$from}' AS DATE) AND CAST('{$to}' as DATE)";
$this->dateRange = "id IN (