100
« Last post by Clark on September 09, 2023, 12:54:08 pm »
I am not able to reproduce this. Although, I'm using Windows 10 and don't have access to Windows 11
On Windows, SlickEdit is using the GetTimeFormatW() function.
code looks like this:
SYSTEMTIME sysTime;
sysTime.wYear = m_year;
sysTime.wMonth = m_month;
sysTime.wDay = m_day;
sysTime.wHour = m_hours;
sysTime.wMinute = m_minutes;
sysTime.wDayOfWeek = m_dayOfWeek;
sysTime.wSecond = m_seconds;
sysTime.wMilliseconds = m_microseconds / 1000;
wchar_t dateStr[100];
int len = GetTimeFormatW(LOCALE_USER_DEFAULT, 0, &sysTime, 0, dateStr, sizeof(dateStr) / sizeof(wchar_t));
if (len && dateStr[len - 1] == 0) --len;
result.assign(dateStr, len);
return (result);
I suspect if you run the above code, you will get your results with the extra spaces.