From 5206ff088947f72b8076aeb67e434991a60e04d2 Mon Sep 17 00:00:00 2001 From: Ka3dr Date: Sat, 30 May 2026 00:21:35 +0300 Subject: [PATCH] Fix local time format to HH:MM:SS --- src/game/client/components/hud.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/client/components/hud.cpp b/src/game/client/components/hud.cpp index 1df63e789..35d4d545b 100644 --- a/src/game/client/components/hud.cpp +++ b/src/game/client/components/hud.cpp @@ -3278,7 +3278,7 @@ CUIRect CHud::GetLocalTimeRect(bool ForcePreview) const const bool Seconds = g_Config.m_TcShowLocalTimeSeconds; // TClient char aTimeStr[16]; - str_timestamp_format(aTimeStr, sizeof(aTimeStr), Seconds ? "%H:%M.%S" : "%H:%M"); + str_timestamp_format(aTimeStr, sizeof(aTimeStr), Seconds ? "%H:%M:%S" : "%H:%M"); const float FontSize = 5.0f * Scale; const float Padding = 5.0f * Scale; const float Width = std::round(TextRender()->TextBoundingBox(FontSize, aTimeStr).m_W); @@ -3312,7 +3312,7 @@ void CHud::RenderLocalTime(bool ForcePreview) const bool Seconds = g_Config.m_TcShowLocalTimeSeconds; // TClient char aTimeStr[16]; - str_timestamp_format(aTimeStr, sizeof(aTimeStr), Seconds ? "%H:%M.%S" : "%H:%M"); + str_timestamp_format(aTimeStr, sizeof(aTimeStr), Seconds ? "%H:%M:%S" : "%H:%M"); const float FontSize = 5.0f * Scale; const float Padding = 5.0f * Scale; const float RectX = Rect.x;