Skip to content

Commit

Permalink
Fix for holiday calendar showing and highlighting the wrong month. Fi…
Browse files Browse the repository at this point in the history
…xes Mantis 1918.
  • Loading branch information
ericthefish committed Jul 4, 2017
1 parent 90c1e6b commit f4f430a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions calendar/calendar.inc.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function draw_calendar($nmonth, $nyear)
} }
while ($monthTest != $monthOrig); while ($monthTest != $monthOrig);


$monthName = ldate('F', mktime(0, 0, 0, $nmonth, 1, $nyear)); $monthName = ldate('F', mktime(12, 0, 0, $nmonth, 1, $nyear));


if ($CONFIG['debug']) if ($CONFIG['debug'])
{ {
Expand Down Expand Up @@ -891,4 +891,4 @@ function book_days_when_free($name, $description, $user, $startdate, $days, $doi
return $daysarray; return $daysarray;
} }


?> ?>

0 comments on commit f4f430a

Please sign in to comment.