[pmwiki-users] Bug in PmCalendar

Chris Cox ccox at airmail.net
Wed Feb 15 09:41:25 CST 2006


Peter Gerell wrote:
> 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;

Hey.. .thanks!  I probably never noticed it... it's not all that
visible (probably why I missed it!).  Nice catch.  Glad I didn't
proclaim it as 1.0 yet.





More information about the pmwiki-users mailing list