From 55df4831d7aff45bc4c3ced0d7e93c65eb817370 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 21 Feb 2014 10:25:14 +0000 Subject: [PATCH] Monitoring backends are not allowed to return non-unixtime timestamps --- .../Monitoring/Backend/Ido/Query/StatusQuery.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusQuery.php index b089cbc92..44c3c89ba 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusQuery.php @@ -194,13 +194,13 @@ class StatusQuery extends IdoQuery 'service_current_check_attempt' => 'ss.current_check_attempt', 'service_max_check_attempts' => 'ss.max_check_attempts', 'service_attempt' => 'ss.current_check_attempt || \'/\' || ss.max_check_attempts', - 'service_last_check' => 'ss.last_check', - 'service_next_check' => 'ss.next_check', + 'service_last_check' => 'UNIX_TIMESTAMP(ss.last_check)', + 'service_next_check' => 'UNIX_TIMESTAMP(ss.next_check)', 'service_check_type' => 'ss.check_type', - 'service_last_hard_state_change' => 'ss.last_hard_state_change', + 'service_last_hard_state_change' => 'UNIX_TIMESTAMP(ss.last_hard_state_change)', 'service_last_hard_state' => 'ss.last_hard_state', - 'service_last_notification' => 'ss.last_notification', - 'service_next_notification' => 'ss.next_notification', + 'service_last_notification' => 'UNIX_TIMESTAMP(ss.last_notification)', + 'service_next_notification' => 'UNIX_TIMESTAMP(ss.next_notification)', 'service_no_more_notifications' => 'ss.no_more_notifications', 'service_notifications_enabled' => 'ss.notifications_enabled',