msvcrt: Fix _strdate implementation in Hindi locale.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2021-12-13 17:19:10 +01:00 committed by Alexandre Julliard
parent a4f86cbf3d
commit 0e9431b809
1 changed files with 12 additions and 1 deletions

View File

@ -538,7 +538,18 @@ struct tm* CDECL _gmtime32(const __time32_t* secs)
*/ */
char* CDECL _strdate(char* date) char* CDECL _strdate(char* date)
{ {
GetDateFormatA(LOCALE_NEUTRAL, 0, NULL, "MM'/'dd'/'yy", date, 9); SYSTEMTIME st;
GetLocalTime(&st);
date[0] = '0' + st.wMonth / 10;
date[1] = '0' + st.wMonth % 10;
date[2] = '/';
date[3] = '0' + st.wDay / 10;
date[4] = '0' + st.wDay % 10;
date[5] = '/';
date[6] = '0' + st.wYear / 10 % 10;
date[7] = '0' + st.wYear % 10;
date[8] = 0;
return date; return date;
} }