#25 Two decembers displayed (Broken Calendar)

Minor
closed
Bo Kleve
MRBS (194)
5
2012-07-20
2000-11-30
Rob.C
No

MRBS: mrbs-0.9pre1
Apache: 1.3.12
PHP: 4.0.1 Patch Level 2
OS: FreeBSD 4.2

If you select '31' 'Nov' '2000' from the drop down list and hit 'goto' then two december calendars are listed on the right hand side. Although it does (correctly) display the booking page for the 1st December 2000.

Discussion

  • Bo Kleve
    Bo Kleve
    2000-12-02

    This error is displayed every time a date is selected where the day number is higher than the number of days of the month. This patch takes care of that and sets the date to the last of the selected month.

    /BoK

    updated/day.php3 Sun Nov 5 18:10:29 2000
    --- day.php3 Sat Dec 2 01:16:20 2000
    ***
    18,23 ****
    --- 18,27 ----
    if(!isset($area))
    $area = 1;

    • Make the date valid if day is more then number of days in month

    • while (!checkdate($month, $day, $year))
    • $day--;
    • # print the page header
      print_header($day, $month, $year, $area);
     
  • lbayuk
    lbayuk
    2001-02-14

    Confirmed fixed in the latest release 0.9.2, closed.

     


Anonymous


Cancel   Add attachments