diff --git a/library/Icinga/Web/Widget/Chart/HistoryColorGrid.php b/library/Icinga/Web/Widget/Chart/HistoryColorGrid.php index 96b012db5..d1c9a677f 100644 --- a/library/Icinga/Web/Widget/Chart/HistoryColorGrid.php +++ b/library/Icinga/Web/Widget/Chart/HistoryColorGrid.php @@ -268,7 +268,7 @@ class HistoryColorGrid extends AbstractWidget { } $week++; } - if ($day > cal_days_in_month(CAL_GREGORIAN, $month, $year)) { + if ($day > date('t', mktime(0, 0, 0, $month, 1, $year))) { $month++; if ($month > 12) { $year++;