comparison gtk/dw.c @ 87:1eb72c0e8c79

Fixed a problem with the date type in the containers... month should be 0 based not 1 based.... from stat().
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 03 Apr 2002 05:48:15 +0000
parents a2b13e127d25
children eeb98f881663
comparison
equal deleted inserted replaced
86:a2b13e127d25 87:1eb72c0e8c79
3476 } 3476 }
3477 else if(flag & DW_CFA_DATE) 3477 else if(flag & DW_CFA_DATE)
3478 { 3478 {
3479 CDATE fdate = *((CDATE *)data); 3479 CDATE fdate = *((CDATE *)data);
3480 3480
3481 if(fdate.month > 0) 3481 if(fdate.month > -1 && fdate.month < 12 && fdate.day > 0 && fdate.year > 0)
3482 sprintf(textbuffer, "%s %d, %d", monthlist[fdate.month-1], fdate.day, fdate.year); 3482 sprintf(textbuffer, "%s %d, %d", monthlist[fdate.month], fdate.day, fdate.year);
3483 else 3483 else
3484 strcpy(textbuffer, ""); 3484 strcpy(textbuffer, "");
3485 3485
3486 gtk_clist_set_text(GTK_CLIST(clist), row, column, textbuffer); 3486 gtk_clist_set_text(GTK_CLIST(clist), row, column, textbuffer);
3487 } 3487 }