Merge branch 'ent-9805-14513-14958-problema-timestamp-vs-utimestamp-en-tevento-al-crear-eventos-por-api' into 'develop'

Unified event timestamp and utimestamp

See merge request artica/pandorafms!5561
This commit is contained in:
Daniel Rodriguez 2023-03-02 16:32:01 +00:00
commit 7e9abf01dd
1 changed files with 5 additions and 2 deletions

View File

@ -2412,14 +2412,17 @@ function events_create_event(
$source = get_product_name();
}
// Get Timestamp.
$timestamp = time();
$values = [
'id_agente' => $id_agent,
'id_usuario' => $id_user,
'id_grupo' => $id_group,
'estado' => $status,
'timestamp' => date('Y-m-d H:i:s'),
'timestamp' => date('Y-m-d H:i:s', $timestamp),
'evento' => $event,
'utimestamp' => time(),
'utimestamp' => $timestamp,
'event_type' => $event_type,
'id_agentmodule' => $id_agent_module,
'id_alert_am' => $id_aam,