View | Details | Raw Unified | Return to bug 166662 | Differences between
and this patch

Collapse All | Expand All

(-)call-log.php (-1 / +1 lines)
Lines 229-235 Link Here
229
	
229
	
230
	
230
	
231
	/************************/
231
	/************************/
232
	$QUERY = "SELECT substring(calldate,1,10) AS day, sum(duration) AS calltime, count(*) as nbcall FROM cdr WHERE ".$FG_TABLE_CLAUSE." GROUP BY substring(calldate,1,10)"; //extract(DAY from calldate) 
232
	$QUERY = "SELECT substr(cast(calldate as text),1,10) AS day, sum(duration) AS calltime, count(*) as nbcall FROM cdr WHERE ".$FG_TABLE_CLAUSE." GROUP BY substr(cast(calldate as text),1,10)"; //extract(DAY from calldate) 
233
	//echo "$QUERY";
233
	//echo "$QUERY";

Return to bug 166662