parseInt on ical.js not work well

Sorry for my poor english.



when I load August (or September) schedule data from ical format.

but I can not view such schedule data.



I think parseInt on sources/ical.js was not work well?



*** ical.js.20090731 2009-07-22 19:45:54.000000000 +0900

— ical.js 2009-07-31 20:08:15.000000000 +0900

***************

*** 56,62 ****

dm=t[1].substr(2,2);

}

var dy = t[0].substr(0,4);

! var dn = parseInt(t[0].substr(4,2))-1;

var dd = t[0].substr(6,2);



return new Date(dy,dn,dd,dh,dm);

— 56,62 ----

dm=t[1].substr(2,2);

}

var dy = t[0].substr(0,4);

! var dn = parseInt(t[0].substr(4,2),10)-1;

var dd = t[0].substr(6,2);



return new Date(dy,dn,dd,dh,dm);

Problem is confirmed. You are right, used code parses 08 and 09 incorrectly ( javascript recognize them as octal numbers )
The similar fix is added to the main codebase and will be available as part of next updated.

Thanks for provided solution.