diff options
author | George Hazan <george.hazan@gmail.com> | 2024-10-16 20:57:52 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-10-16 20:57:52 +0300 |
commit | 58a65dba133370082d973fd6d5150159fc2f044c (patch) | |
tree | 258d7f0824ec9954e2448963964f8fc173a8e9dc | |
parent | a0d7c372eddee44ece0f2693633ca6faabb6fd8c (diff) |
fixes #4736 (VersionInfo: в Windows XP вместо дат выводятся кракозябры)
-rw-r--r-- | plugins/CrashDumper/src/utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CrashDumper/src/utils.cpp b/plugins/CrashDumper/src/utils.cpp index 89e2392f9f..17d8a74315 100644 --- a/plugins/CrashDumper/src/utils.cpp +++ b/plugins/CrashDumper/src/utils.cpp @@ -54,11 +54,11 @@ CMStringW GetISO8061Time(SYSTEMTIME *stLocal) if (g_plugin.bClassicDates) {
wchar_t buf[100];
if (!GetDateFormatW(LOCALE_CUSTOM_DEFAULT, DATE_LONGDATE, stLocal, 0, buf, _countof(buf)))
- GetDateFormatW(LOCALE_CUSTOM_DEFAULT, 0, stLocal, L"d MMM yyyy", buf, _countof(buf));
+ GetDateFormatW(LOCALE_USER_DEFAULT, 0, stLocal, L"d MMM yyyy", buf, _countof(buf));
ret.AppendFormat(L"%s ", buf);
if (!GetTimeFormatW(LOCALE_CUSTOM_DEFAULT, 0, stLocal, 0, buf, _countof(buf)))
- GetTimeFormatW(LOCALE_CUSTOM_DEFAULT, 0, stLocal, L"H:mm:ss", buf, _countof(buf));
+ GetTimeFormatW(LOCALE_USER_DEFAULT, 0, stLocal, L"H:mm:ss", buf, _countof(buf));
ret.Append(buf);
}
else {
|