zmughal / jsgantt

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

Parsing of Date does not parse properly. Quick Fix included. #65

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
JSGantt Version: v12
Browser: all
OS: all

What steps will reproduce the problem?
1. In jsgantt.js
Line 1467:
         vDate.setFullYear(parseInt(vDateParts[0], 10), 
parseInt(vDateParts[1], 10) - 1, parseInt(vDateParts[1], 10));

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

Note the array accessor in the last vDateParts!

Original issue reported on code.google.com by JeffreyD...@gmail.com on 8 Dec 2009 at 9:42

GoogleCodeExporter commented 9 years ago
Apparently it's actually line 2048 in the source code right now

Original comment by JeffreyD...@gmail.com on 8 Dec 2009 at 9:46