reporter = $this->layout_manager->getAttribute('reporter'); } //TODO:now for date time field , we just search from date start to date end. The time is from 00:00:00 to 23:59:59 //If there is requirement, we can modify report.js::addFilterInputDatetimesBetween and this function function queryFilterBetween_Datetimes(& $layout_def) { global $timedate; if($this->getAssignedUser()) { $begin = $timedate->handle_offset($layout_def['input_name0'], $timedate->get_db_date_time_format(), false, $this->assigned_user); $end = $timedate->handle_offset($layout_def['input_name2'], $timedate->get_db_date_time_format(), false, $this->assigned_user); } else { $begin = $layout_def['input_name0']; $end = $layout_def['input_name1']; } return "(".$this->_get_column_select($layout_def).">='".$this->reporter->db->quote($begin)."' AND \n".$this->_get_column_select($layout_def)."<='".$this->reporter->db->quote($end)."')\n"; } }