From 2b56e63ed0a4cf8ede0da73afed0b738fee08a27 Mon Sep 17 00:00:00 2001 From: ibering Date: Fri, 2 Jun 2023 11:11:51 +0200 Subject: [PATCH] Configuration of the time period - the date in the calendar is incomplete (the year is missing) --- .../Core/MonitoringEngine/NagiosConfigGenerator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/itnovum/openITCOCKPIT/Core/MonitoringEngine/NagiosConfigGenerator.php b/src/itnovum/openITCOCKPIT/Core/MonitoringEngine/NagiosConfigGenerator.php index 176849e95a..f358ef754b 100644 --- a/src/itnovum/openITCOCKPIT/Core/MonitoringEngine/NagiosConfigGenerator.php +++ b/src/itnovum/openITCOCKPIT/Core/MonitoringEngine/NagiosConfigGenerator.php @@ -2262,7 +2262,7 @@ public function exportTimeperiods($uuid = null) { $timestamp = strtotime(sprintf('%s 00:00', $holiday->get('date'))); $calendarDay = sprintf('%s 00:00-24:00; %s', - strtolower(date('F j', $timestamp)), + strtolower(date('Y-m-d', $timestamp)), $holiday->get('name') ); $content .= $this->addContent($calendarDay, 1); @@ -2378,7 +2378,7 @@ public function exportSatTimeperiods($timeperiods, EntityInterface $satelite) { $timestamp = strtotime(sprintf('%s 00:00', $holiday->get('date'))); $calendarDay = sprintf('%s 00:00-24:00; %s', - strtolower(date('F j', $timestamp)), + strtolower(date('Y-m-d', $timestamp)), $holiday->get('name') ); $content .= $this->addContent($calendarDay, 1);