tooltip time format
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user