fix month starting at 0

This commit is contained in:
Green Sky 2024-02-15 15:34:44 +01:00
parent 9a0df4f577
commit 0aeafec019
No known key found for this signature in database

View File

@ -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);