Interesting. I'll look into why that happened.
In any case, this time please change the following in <sugarroot/modules/Tasks/MyTasks.php>:
Code:
$today = gmdate("Y-m-d H:i:s");
// Break down the date, add a day, and print it back out again
list($date_tmp,$time_tmp) = explode(' ',$today);
$date = explode('-',$date_tmp);
$time = explode(':',$time_tmp);
$tomorrow = gmdate("Y-m-d H:i:s",gmmktime($time[0],$time[1],$time[2],$date[1],($date[2]+1),$date[0]));
$ListView = new ListView();
$seedTasks = new Task();
$where = "tasks.assigned_user_id='". $current_user->id ."' and (tasks.status is NULL or (tasks.status!='Completed' and tasks.status!='Deferred')) ";
$where .= "and (tasks.date_start is NULL or ";
$where .= " CONCAT(".db_convert("tasks.date_start","date_format",array("'YYYY-MM-DD'")).", CONCAT(' ',". db_convert("tasks.time_start","time_format",array("'HH24:MI:SS'"))." )) <=". "'".$tomorrow."')"; to:
Code:
$today = gmdate("Y-m-d H:i:s");
// Break down the date, add a day, and print it back out again
list($date_tmp,$time_tmp) = explode(' ',$today);
$date = explode('-',$date_tmp);
$time = explode(':',$time_tmp);
$tomorrow = gmdate("Y-m-d H:i:s",gmmktime($time[0],$time[1],$time[2],$date[1],($date[2]+1),$date[0]));
$ListView = new ListView();
$seedTasks = new Task();
if ($seedTasks->db->dbType=='mysql') {
$format=array("'%Y-%m-%d'");
} else {
$format=array("'YYYY-MM-DD'");
}
$where = "tasks.assigned_user_id='". $current_user->id ."' and (tasks.status is NULL or (tasks.status!='Completed' and tasks.status!='Deferred')) ";
$where .= "and (tasks.date_start is NULL or ";
$where .= " CONCAT(".db_convert("tasks.date_start","date_format",$format).", CONCAT(' ',". db_convert("tasks.time_start","time_format",$format)." )) <=". "'".$tomorrow."')"; ~Sadek~
Bookmarks