IcingaDbState: last_state_change is now a DateTime Obj

ref https://github.com/Icinga/icingadb-web/pull/753
This commit is contained in:
Sukhwinder Dhillon 2023-06-06 15:07:04 +02:00
parent 82ddeba163
commit 4143019412

View file

@ -122,7 +122,7 @@ class IcingaDbState
}
if ($row->state->last_state_change !== null) {
$node->setLastStateChange($row->state->last_state_change/1000);
$node->setLastStateChange($row->state->last_state_change->getTimestamp());
}
if ($row->state->in_downtime) {
$node->setDowntime(true);