-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Not an issue
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: CDR Reports
-
Labels:None
-
ToDo:
-
Asterisk Version:13.19.1
-
Distro Version:13.0.195.1
-
Distro:FreePBX Distro
Hi,
In my admin panel at view cdr table not show calldate.
I found error in code in file: /var/www/html/admin/modules/cdr/page.cdr.php line 1079. (my file version in attachments).
/* CDR Table Display Functions */
function cdr_formatCallDate($calldate) {
echo "<td>".FreePBX::View()->getDateTime($calldate)."</td>";
}
Method getDateTime not working correctly.
Argument $calldate have value from SQL and query is correct, my temp repir this:
/* CDR Table Display Functions */
function cdr_formatCallDate($calldate) {
//echo "<td>".FreePBX::View()->getDateTime($calldate)."</td>";
printf('<td>%s</td>', date('Y-m-d H:i:s', $calldate));
}