summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-10-16 20:57:52 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-10-16 20:57:52 +0300
commit58a65dba133370082d973fd6d5150159fc2f044c (patch)
tree258d7f0824ec9954e2448963964f8fc173a8e9dc
parenta0d7c372eddee44ece0f2693633ca6faabb6fd8c (diff)
fixes #4736 (VersionInfo: в Windows XP вместо дат выводятся кракозябры)
-rw-r--r--plugins/CrashDumper/src/utils.cpp4
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 {