From d4c019cb362b4f5febb4221fbe7b871049cb9c9c Mon Sep 17 00:00:00 2001 From: Daniel Siepmann <daniel.siepmann@typo3.org> Date: Mon, 24 Feb 2020 12:24:40 +0100 Subject: [PATCH] [BUGFIX] Add sys log errors from current day to widget MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Include current day when collecting data and labels for sys log widget. Resolves: #90517 Releases: master Change-Id: Idc65d03df0e6d115450cc080c479b52759636123 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63400 Tested-by: Christian Eßl <indy.essl@gmail.com> Tested-by: TYPO3com <noreply@typo3.com> Tested-by: Oliver Bartsch <bo@cedev.de> Tested-by: Georg Ringer <georg.ringer@gmail.com> Reviewed-by: Christian Eßl <indy.essl@gmail.com> Reviewed-by: Guido Schmechel <guido.schmechel@brandung.de> Reviewed-by: Oliver Bartsch <bo@cedev.de> Reviewed-by: Georg Ringer <georg.ringer@gmail.com> --- typo3/sysext/dashboard/Classes/Widgets/SysLogErrorsWidget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/dashboard/Classes/Widgets/SysLogErrorsWidget.php b/typo3/sysext/dashboard/Classes/Widgets/SysLogErrorsWidget.php index 528e0cb77609..bca0ac207a52 100644 --- a/typo3/sysext/dashboard/Classes/Widgets/SysLogErrorsWidget.php +++ b/typo3/sysext/dashboard/Classes/Widgets/SysLogErrorsWidget.php @@ -87,7 +87,7 @@ class SysLogErrorsWidget extends AbstractBarChartWidget { $format = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'] ?: 'Y-m-d'; - for ($daysBefore=$days; $daysBefore>0; $daysBefore--) { + for ($daysBefore=$days; $daysBefore>=0; $daysBefore--) { $this->labels[] = date($format, strtotime('-' . $daysBefore . ' day')); $startPeriod = strtotime('-' . $daysBefore . ' day 0:00:00'); $endPeriod = strtotime('-' . $daysBefore . ' day 23:59:59'); -- GitLab