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 = '
'.__('Generated').': | '.$date_today.' | |||
'.__('Report date').': | '; + + $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 .= ''.__('From').' '.date($config['date_format'], ($report['datetime'] - $report['period'])).' | '; $html .= ''.__('to').' '.date($config['date_format'], $report['datetime']).' | '; } else { - $html .= ''.__('Items period before').' '.date($config['date_format'], $report['datetime']).' | '; + $html .= ''.__('Items period before').' '.$date_before.' | '; } $html .= '