#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

  • Daniel Friedmann

    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.

     
  • Daniel Friedmann

    • assigned_to: nobody --> fbreinlich
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks