Fixed problem of evaluation for last_execution by casting time() to integer.

This commit is contained in:
Junichi Satoh 2020-02-17 11:13:44 +09:00
parent bf0211c9b8
commit 767cb01185
1 changed files with 1 additions and 1 deletions

View File

@ -1563,7 +1563,7 @@ sub pandora_execute_action ($$$$$$$$$;$) {
# Update action last execution date
if (defined ($action->{'last_execution'}) && defined ($action->{'id_alert_templ_module_actions'})) {
db_do ($dbh, 'UPDATE talert_template_module_actions SET last_execution = ?
WHERE id = ?', time (), $action->{'id_alert_templ_module_actions'});
WHERE id = ?', int(time ()), $action->{'id_alert_templ_module_actions'});
}
}