imamardhi / jsgantt

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

When date display format is yyyy-mm-dd undefined value displayed for day mode #77

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This issue may dovetail with Issue #60.

Set DateDisplayFormat to "yyyy-mm-dd" and Format = "day". Task dates
display as "undefined - yyyy-mm-dd". I believe the intent is display as
"mm-dd - yyyy-mm-dd". If so, you can change the code around line 1168

From:

vRightTable += '<td class=gdatehead style="FONT-SIZE: 12px; HEIGHT: 19px;"
align=center colspan=7>' +       
JSGantt.formatDateStr(vTmpDate,vDateDisplayFormat.substring(0,5)) + ' - ';

To:

if ( vDateDisplayFormat == 'yyyy-mm-dd' )
{    vRightTable += '<td class=gdatehead style="FONT-SIZE: 12px; HEIGHT:
19px;" align=center colspan=7>' +            
JSGantt.formatDateStr(vTmpDate,vDateDisplayFormat).substring(5,10) + ' - ';
}
else
{   vRightTable += '<td class=gdatehead style="FONT-SIZE: 12px; HEIGHT:
19px;" align=center colspan=7>' +            
JSGantt.formatDateStr(vTmpDate,vDateDisplayFormat.substring(0,5)) + ' - ';
}

Original issue reported on code.google.com by ndm_regi...@sbcglobal.net on 10 Mar 2010 at 8:30