Ignore:
Timestamp:
2006-10-05T17:15:20+13:00 (18 years ago)
Author:
kjdon
Message:

when doing special formatting for datelist, allow yyyy-mm-dd format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/datelistbrowserclass.cpp

    r12488 r13017  
    119119    thisyear = substr (datebegin, datebegin+4);
    120120    thismonth = "00";
    121     if (datesize >= 6)
    122       thismonth = substr (datebegin+4, datebegin+6);
     121    int pos = 4;
     122    // allow for yyyy-mm-dd
     123    if (date[pos]=='-') {
     124      ++pos;
     125    }
     126    if (datesize >= pos+2)
     127      thismonth = substr (datebegin+pos, datebegin+pos+2);
    123128      }
    124129    }
Note: See TracChangeset for help on using the changeset viewer.