[ros-diffs] [ekohl] 33791: User the user-specific date format instead of a hard-coded one.

ekohl at svn.reactos.org ekohl at svn.reactos.org
Sat May 31 22:09:18 CEST 2008


Author: ekohl
Date: Sat May 31 15:09:17 2008
New Revision: 33791

URL: http://svn.reactos.org/svn/reactos?rev=33791&view=rev
Log:
User the user-specific date format instead of a hard-coded one.

Modified:
    trunk/reactos/dll/cpl/appwiz-new/appwiz.c

Modified: trunk/reactos/dll/cpl/appwiz-new/appwiz.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/appwiz-new/appwiz.c?rev=33791&r1=33790&r2=33791&view=diff
==============================================================================
--- trunk/reactos/dll/cpl/appwiz-new/appwiz.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/appwiz-new/appwiz.c [iso-8859-1] Sat May 31 15:09:17 2008
@@ -243,7 +243,8 @@
                 {
                     if (((int)localtime.wYear > 1900) && ((int)localtime.wYear < 3000))
                     {
-                        swprintf(szLastUsed, L"%02d.%02d.%02d", localtime.wMonth, localtime.wDay, localtime.wYear);
+                        GetDateFormat(LOCALE_USER_DEFAULT, DATE_SHORTDATE, &localtime,
+                                      NULL, szLastUsed, 256);
                     }
                     else wcscpy(szLastUsed,L"---");
                 }



More information about the Ros-diffs mailing list