[pmwiki-users] Bug in PmCalendar

Peter Gerell boost at gerell.se
Wed Feb 15 08:53:13 CST 2006


Hi, I think I have found a bug in the PmCalendar recipe.
If weekstart!=0 the number of nullcells at the end of the last week of the 
month is calculated in the wrong way.
This is easy to see for April 2006.
http://www.pmwiki.org/wiki/PmCal/PmCal?weekstart=1&year=2006&month=4

I maid the following change to pmcal.php

<                  $dayindex = $d % 7;
---
>                  $dayindex = ($d + 7 - $weekstart) % 7;

/Peter 







More information about the pmwiki-users mailing list