From 63e0cf0ec26aa3bb587887f87d6f38013f9eb5dc Mon Sep 17 00:00:00 2001 From: "fefe.clochette" Date: Tue, 15 Sep 2026 19:26:36 +0200 Subject: [PATCH] fix recap --- modules/budget/includes/DynamicBudgetCalculator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/budget/includes/DynamicBudgetCalculator.php b/modules/budget/includes/DynamicBudgetCalculator.php index 77e1a0a..fe05d70 100644 --- a/modules/budget/includes/DynamicBudgetCalculator.php +++ b/modules/budget/includes/DynamicBudgetCalculator.php @@ -150,7 +150,7 @@ class DynamicBudgetCalculator { ]; } - $daysInMonth = cal_days_in_month(CAL_GREGORIAN, (int)$this->month, $this->year); + $daysInMonth = (int)date('t', strtotime(sprintf("%04d-%02d-01", $this->year, $this->month))); // 2. Itération SANS pointeurs de référence for ($d = 1; $d <= $daysInMonth; $d++) {