From 0aeafec0192f2eb68b7b343d5e0426030a311e18 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Thu, 15 Feb 2024 15:34:44 +0100 Subject: [PATCH] fix month starting at 0 --- src/chat_gui4.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chat_gui4.cpp b/src/chat_gui4.cpp index 3bd2e7a..6f2e2d1 100644 --- a/src/chat_gui4.cpp +++ b/src/chat_gui4.cpp @@ -359,8 +359,8 @@ float ChatGui4::render(float time_delta) { // msg if (ImGui::TableNextColumn()) { ImGui::TextDisabled("DATE CHANGED from %d.%d.%d to %d.%d.%d", - 1900+prev_tm.tm_year, prev_tm.tm_mon, prev_tm.tm_mday, - 1900+next_tm.tm_year, next_tm.tm_mon, next_tm.tm_mday + 1900+prev_tm.tm_year, 1+prev_tm.tm_mon, prev_tm.tm_mday, + 1900+next_tm.tm_year, 1+next_tm.tm_mon, next_tm.tm_mday ); } ImGui::TableNextRow(0, TEXT_BASE_HEIGHT);