language independent time/date format

This commit is contained in:
otavepto 2024-04-13 11:57:49 +02:00
parent 75b2423a25
commit 0f6b32c248

View File

@ -1339,7 +1339,8 @@ void Steam_Overlay::render_main_window()
if (achieved) {
char buffer[80] = {};
time_t unlock_time = (time_t)x.unlock_time;
std::strftime(buffer, 80, "%Y-%m-%d at %H:%M:%S", std::localtime(&unlock_time));
// TODO add this format to the overlay_appearance.txt
std::strftime(buffer, 80, "%Y/%m/%d - %H:%M:%S", std::localtime(&unlock_time));
ImGui::TextColored(ImVec4(0, 255, 0, 255), translationAchievedOn[current_language], buffer);
} else {