Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#28 STATUS WINDOW DATE FORMAT

open
JohnnyB
5
2007-03-03
2007-02-14
Scotty
No

STATUS WINDOW > FILTERING OPERATIONS SUMMARY

Date field formatting.

Prefer user's DATE_SHORTDATE format, unless overridden.

Your code fragment, as follows,

if (GetDateFormat(LOCALE_USER_DEFAULT, 0, &st, FILTERING_STATS_DATE_FORMAT, dateStr, 32)==0) {
strcpy(dateStr, "unknown");
}

FILTERING_STATS_DATE_FORMAT appears to have NO definition

suggest changing to

{
char s[32]={NULL};
if (GetDateFormat(LOCALE_USER_DEFAULT, DATE_SHORTDATE, &st, "", dateStr, 32)==0) {
strcpy(dateStr, "unknown");
}

until an format override is user selectable.

Thanks
/Scott

Discussion

  • Logged In: YES
    user_id=612239
    Originator: NO

    I assign this request to Florian. Please review the code and include it into the source in CVS for the next compilation.

     
    • assigned_to: nobody --> fbreinlich