diff --git a/pandora_console/include/functions_reporting_html.php b/pandora_console/include/functions_reporting_html.php index 9877842e0a..1445f2e84e 100644 --- a/pandora_console/include/functions_reporting_html.php +++ b/pandora_console/include/functions_reporting_html.php @@ -130,17 +130,24 @@ function html_do_report_info($report) $date_today = date($config['date_format']); + $date_today = preg_split('/[\s,]+/', io_safe_output($date_today)); + + $date_today = __($date_today[0]).' '.$date_today[1].' '.$date_today[2].' '.$date_today[3].' '.$date_today[4]; $html = '
'; + + $date_before = date($config['date_format'], $report['datetime']); + $date_before = preg_split('/[\s,]+/', io_safe_output($date_before)); + $date_before = __($date_before[0]).' '.$date_before[1].' '.$date_before[2].' '.$date_before[3].' '.$date_before[4]; if (is_numeric($report['datetime']) && is_numeric($report['period']) && ($report['period'] != 0)) { $html .= ''; $html .= ''; } else { - $html .= ''; + $html .= ''; } $html .= '
'.__('Generated').': '.$date_today.'
'.__('Report date').': '.__('From').' '.date($config['date_format'], ($report['datetime'] - $report['period'])).''.__('to').' '.date($config['date_format'], $report['datetime']).''.__('Items period before').' '.date($config['date_format'], $report['datetime']).''.__('Items period before').' '.$date_before.'