Comment 2 for bug 592609

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Thanks, but this is a bug in the website. Clicking on it gives "09 is not a legal ECMA-262 octal constant" in the error console, and sure enough, the website calls this when building the calendar widget:

//get the name of month
function Getmonth(inmonth)
{
    if(inmonth == 01)
    {
    return "Jan";
    }
    else if(inmonth == 02)
    {
    return "Feb";
    }
    else if(inmonth == 03)
    {
    return "Mar";
    }
    else if(inmonth == 04)
    {
    return "Apr";
    }
    else if(inmonth == 05)
    {
    return "May";
    }
    else if(inmonth == 06)
    {
    return "Jun";
    }
    else if(inmonth == 07)
    {
    return "Jul";
    }
    else if(inmonth == 08)
    {
    return "Aug";
    }
    else if(inmonth == 09)
    {
    return "Sep";
    }
    else if(inmonth == 10)
    {
    return "Oct";
    }
    else if(inmonth == 11)
    {
    return "Nov";
    }
    else if(inmonth == 12)
    {
    return "Dec";
    }

}

Numbers beginning with a zero are treated as octal numbers, so "08" is not valid