WebIce / jsgantt

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

JSGantt.parseDateStr #93

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Here is bug (month is placed in day): 

1464       case 'yyyy-mm-dd':
1465          var vDateParts = pDateStr.split('-');
1466          vDate.setFullYear(parseInt(vDateParts[0], 10), 
parseInt(vDateParts[1], 10) - 1, parseInt(vDateParts[1], 10));
1467          break;

Should by
1464       case 'yyyy-mm-dd':
1465          var vDateParts = pDateStr.split('-');
1466          vDate.setFullYear(parseInt(vDateParts[0], 10), 
parseInt(vDateParts[1], 10) - 1, parseInt(vDateParts[2], 10));
1467          break;

Original issue reported on code.google.com by lukasz.h...@gmail.com on 3 Dec 2010 at 8:36

GoogleCodeExporter commented 8 years ago
Have noticed the same problem myself and made the same fix as described here so 
can confirm that works.

Original comment by clickn...@gmail.com on 20 Jan 2011 at 3:02

GoogleCodeExporter commented 8 years ago
Yes, I fixed that cut-and-paste error in our local copy, too.

Original comment by Chris.Ne...@gmail.com on 28 Jan 2011 at 6:53

GoogleCodeExporter commented 8 years ago
I have also added a issue to report this problem

Original comment by renandoc...@gmail.com on 21 Jul 2011 at 1:32