Fixed issue with date

This commit is contained in:
Jose Gonzalez 2021-02-04 14:54:11 +01:00
parent 6dee7a68db
commit aee474e43c
2 changed files with 4 additions and 2 deletions

View File

@ -4844,8 +4844,7 @@ function events_page_general($event)
$user_ack = $event['id_usuario'];
}
$date_ack = io_safe_output($event['ack_utimestamp']);
$data[1] = $user_ack.' ('.$date_ack.')';
$data[1] = $user_ack.' ( '.date($config['date_format'], $event['ack_utimestamp_raw']).' ) ';
} else {
$data[1] = '<i>'.__('N/A').'</i>';
}

View File

@ -374,6 +374,9 @@ if (is_ajax()) {
}
$tmp->agent_name = io_safe_output($tmp->agent_name);
$tmp->ack_utimestamp_raw = strtotime($tmp->ack_utimestamp);
$tmp->ack_utimestamp = ui_print_timestamp(
$tmp->ack_utimestamp,
true