Commit 0e9431b8 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Fix _strdate implementation in Hindi locale.

parent a4f86cbf
......@@ -538,7 +538,18 @@ struct tm* CDECL _gmtime32(const __time32_t* secs)
*/
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment