mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
User the user-specific date format instead of a hard-coded one.
svn path=/trunk/; revision=33791
This commit is contained in:
parent
fbcc10c57e
commit
4e9ffdff7e
1 changed files with 2 additions and 1 deletions
|
@ -243,7 +243,8 @@ GetARPInfo(LPCWSTR szName, LPWSTR szPath, LPWSTR szSize, LPWSTR szLastUsed)
|
|||
{
|
||||
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"---");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue