diff --git a/www/lib/CoreLibs/Basic.inc b/www/lib/CoreLibs/Basic.inc index 0c17fbf6..1ad1f24d 100644 --- a/www/lib/CoreLibs/Basic.inc +++ b/www/lib/CoreLibs/Basic.inc @@ -1459,6 +1459,8 @@ class Basic $days = array (); $start = new \DateTime($start_date); $end = new \DateTime($end_date); + // so we include the last day too, we need to add +1 second in the time + $end->setTime(0, 0, 1); $days[0] = $end->diff($start)->days;