PDA

View Full Version : Last day bug


gza
04-01-2002, 11:18 AM
Hello.

Today is 1st of April. If i want to go gack and see the March calendar i don't get the last day 31st of March.

I fooled around with my server clock, and i have now 1st of June. If i want to go back in May, i get 32 days! and 32 is selected as the current day.

I tested it on your interactive calendar in this page. The same result.

Anybody had this problem? How can it be fixed? Can you help?
I hope you got my ideea.
TX a lot.
/gza

Brian
04-22-2002, 01:01 AM
This bug has been found and will be eradicated in the next release, Version 3.1.

To fix this in Version 3.0, on lines 282 and 299 in the escalendar.php file, change the beginning if statements to read if ($daycount==$tnum && $nt!="1" && $cd>0 && $cd<$nd)

Leave all of the code after the if statements the same.