diff --git a/AsuroTool/AsuroTool.cpp b/AsuroTool/AsuroTool.cpp index f5a44ef..968136c 100644 --- a/AsuroTool/AsuroTool.cpp +++ b/AsuroTool/AsuroTool.cpp @@ -163,9 +163,7 @@ void draw(DrawData& drawData, ApplicationData& appData) if (appData.hoverTargetType == HoverTargetType::HOVER_TARGET_CHECKLIST_DAY) { ImGui::BeginTooltip(); - char timeStr[32]; - snprintf(timeStr, _countof(timeStr), "%02u.%02u", unsigned int{ appData.hoverTargetDay.day() }, unsigned int{ appData.hoverTargetDay.month() }); - ImGui::Text(timeStr); + ImGui::Text(std::format("{:%a, %d.%m}", std::chrono::sys_days{ appData.hoverTargetDay }).c_str()); ImGui::EndTooltip(); } }