Fix error in previous change in Windows date formatting

This commit is contained in:
Jean-Francois Dockes 2020-04-17 07:37:55 +01:00
parent d67fe267d8
commit a51721b5c2

View File

@ -286,7 +286,7 @@ std::string utf8datestring(const std::string& format, struct tm *tm)
utf8towchar(format, wformat, 199); utf8towchar(format, wformat, 199);
wchar_t wdate[250]; wchar_t wdate[250];
wcsftime(wdate, 250, wformat, tm); wcsftime(wdate, 250, wformat, tm);
wchartoutf8(wformat, u8date); wchartoutf8(wdate, u8date);
#else #else
char datebuf[200]; char datebuf[200];
strftime(datebuf, 199, format.c_str(), tm); strftime(datebuf, 199, format.c_str(), tm);