mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-10-11 22:49:56 +00:00
GameList: Handle non-ascii date strings on Windows
This commit is contained in:
committed by
lightningterror
parent
a05bb033ec
commit
c22fccbbc9
@@ -1215,9 +1215,15 @@ std::string GameList::FormatTimestamp(std::time_t timestamp)
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef _WIN32
|
||||
wchar_t buf[128];
|
||||
std::wcsftime(buf, std::size(buf), L"%x", &ttime);
|
||||
ret = StringUtil::WideStringToUTF8String(buf);
|
||||
#else
|
||||
char buf[128];
|
||||
std::strftime(buf, std::size(buf), "%x", &ttime);
|
||||
ret.assign(buf);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user