From 97e8e949fb9e0b01d1b72c697dae4a26efc0fb4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Wed, 5 Nov 2025 07:25:58 +0100 Subject: [PATCH] no message --- Abrechnung/module.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Abrechnung/module.php b/Abrechnung/module.php index a553ec2..714ed2e 100644 --- a/Abrechnung/module.php +++ b/Abrechnung/module.php @@ -227,7 +227,7 @@ private function GetValueAt(int $varId, int $timestamp, bool $nearestAfter = fal if ($nearestAfter) { // Endwert: erster Wert >= Timestamp - $values = @AC_GetLoggedValues($archiveID, $varId, $timestamp, $timestamp + 86400, 1); + $values = @AC_GetLoggedValues($archiveID, $varId, $timestamp, $timestamp + 864000, 1); if ($values && count($values) > 0) return floatval($values[0]['Value']); } else { // Startwert: letzter Wert <= Timestamp