Use date and mktime instead of cal_days_in_month to count a month's days

fixes #8637
This commit is contained in:
Johannes Meyer 2015-03-10 12:30:22 +01:00
parent b978fdb115
commit d0383a241e
1 changed files with 1 additions and 1 deletions

View File

@ -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++;