diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostnotificationQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostnotificationQuery.php index b47463bcd..12b4715c7 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostnotificationQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostnotificationQuery.php @@ -65,6 +65,18 @@ class HostnotificationQuery extends IdoQuery ) ); + /** + * {@inheritdoc} + */ + public function whereToSql($col, $sign, $expression) + { + if ($col === 'UNIX_TIMESTAMP(hn.start_time)') { + return 'hn.start_time ' . $sign . ' ' . $this->timestampForSql($this->valueToTimestamp($expression)); + } else { + return parent::whereToSql($col, $sign, $expression); + } + } + /** * {@inheritdoc} */