From 4143019412a07acb1a9035677f3aa181981fed32 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Tue, 6 Jun 2023 15:07:04 +0200 Subject: [PATCH] IcingaDbState: `last_state_change` is now a DateTime Obj ref https://github.com/Icinga/icingadb-web/pull/753 --- library/Businessprocess/State/IcingaDbState.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Businessprocess/State/IcingaDbState.php b/library/Businessprocess/State/IcingaDbState.php index 68ac45d..0eb0927 100644 --- a/library/Businessprocess/State/IcingaDbState.php +++ b/library/Businessprocess/State/IcingaDbState.php @@ -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);