seanjensengrey / jsgantt

Automatically exported from code.google.com/p/jsgantt
0 stars 0 forks source link

Wrong parsing at method JSGantt.formatDateStr for date format = yyyy-mm-dd #101

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
JSGantt Version: 1.2
Browser: Chrome
OS: Windows XP

The original coed is parsing wrong the date in method JSGantt.parseDateStr()

Original Code:
vDate.setFullYear(parseInt(vDateParts[0], 10), parseInt(vDateParts[1], 10) - 1, 
parseInt(vDateParts[1], 10));

Fixed Code:
vDate.setFullYear(parseInt(vDateParts[0], 10), parseInt(vDateParts[1], 10) - 1, 
parseInt(vDateParts[2], 10));

Original issue reported on code.google.com by renandoc...@gmail.com on 21 Jul 2011 at 1:29