The audit view and csv now use the user defined timezone
This commit is contained in:
parent
0b1546be22
commit
f1985313ab
|
@ -245,7 +245,8 @@ foreach ($result as $row) {
|
|||
}
|
||||
$data[1] = ui_print_session_action_icon ($row['accion'], true);
|
||||
$data[1] .= $row["accion"];
|
||||
$data[2] = ui_print_help_tip($row['fecha'], true) . ui_print_timestamp($row['utimestamp'], true);
|
||||
$data[2] = ui_print_help_tip(date($config["date_format"], $row['utimestamp']), true)
|
||||
. ui_print_timestamp($row['utimestamp'], true);
|
||||
switch ($config['dbtype']) {
|
||||
case "mysql":
|
||||
case "postgresql":
|
||||
|
|
|
@ -2359,7 +2359,11 @@ function print_audit_csv ($data) {
|
|||
__('Source ID') . ';' .
|
||||
__('Comments') ."\n";
|
||||
foreach ($data as $line) {
|
||||
echo io_safe_output($line['id_usuario']) . ';' . io_safe_output($line['accion']) . ';' . $line['fecha'] . ';' . $line['ip_origen'] . ';'. io_safe_output($line['descripcion']). "\n";
|
||||
echo io_safe_output($line['id_usuario']) . ';'
|
||||
. io_safe_output($line['accion']) . ';'
|
||||
. date($config["date_format"], $line['utimestamp']) . ';'
|
||||
. $line['ip_origen'] . ';'
|
||||
. io_safe_output($line['descripcion']). "\n";
|
||||
}
|
||||
|
||||
exit;
|
||||
|
|
Loading…
Reference in New Issue