Use date and mktime instead of cal_days_in_month to count a month's days
fixes #8637
This commit is contained in:
parent
b978fdb115
commit
d0383a241e
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue