From 0b70563eed802804b969fbaa0b2bbe2a83f845d9 Mon Sep 17 00:00:00 2001 From: Salvialf Date: Fri, 26 Jun 2026 21:22:32 +0200 Subject: [PATCH] fix(history): remove useless floatval() cast on timestamp key in getHistoryFromCalcul --- core/class/history.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/class/history.class.php b/core/class/history.class.php index 0035469145..95e845d56f 100644 --- a/core/class/history.class.php +++ b/core/class/history.class.php @@ -985,7 +985,7 @@ public static function getHistoryFromCalcul($_strcalcul, $_dateStart = null, $_d if (count($matches[1]) != count($cmd_history)) { continue; } - $datetime = floatval(strtotime($datetime . ' UTC')); + $datetime = strtotime($datetime . ' UTC'); $calcul = template_replace($cmd_history, $_strcalcul); if ($_noCalcul) { $value[$datetime] = $calcul;