|
|
@ -360,12 +360,17 @@ namespace MWGui
|
|
|
|
timeinfo = localtime(&time);
|
|
|
|
timeinfo = localtime(&time);
|
|
|
|
|
|
|
|
|
|
|
|
// Use system/environment locale settings for datetime formatting
|
|
|
|
// Use system/environment locale settings for datetime formatting
|
|
|
|
|
|
|
|
char* oldLctime = setlocale(LC_TIME, NULL);
|
|
|
|
setlocale(LC_TIME, "");
|
|
|
|
setlocale(LC_TIME, "");
|
|
|
|
|
|
|
|
|
|
|
|
const int size=1024;
|
|
|
|
const int size=1024;
|
|
|
|
char buffer[size];
|
|
|
|
char buffer[size];
|
|
|
|
if (std::strftime(buffer, size, "%x %X", timeinfo) > 0)
|
|
|
|
if (std::strftime(buffer, size, "%x %X", timeinfo) > 0)
|
|
|
|
text << buffer << "\n";
|
|
|
|
text << buffer << "\n";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// reset
|
|
|
|
|
|
|
|
setlocale(LC_TIME, oldLctime);
|
|
|
|
|
|
|
|
|
|
|
|
text << "#{sLevel} " << mCurrentSlot->mProfile.mPlayerLevel << "\n";
|
|
|
|
text << "#{sLevel} " << mCurrentSlot->mProfile.mPlayerLevel << "\n";
|
|
|
|
text << "#{sCell=" << mCurrentSlot->mProfile.mPlayerCell << "}\n";
|
|
|
|
text << "#{sCell=" << mCurrentSlot->mProfile.mPlayerCell << "}\n";
|
|
|
|
|
|
|
|
|
|
|
|