From f81b252386c8f3112911795b63676faed8e1d7f0 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 6 Sep 2015 21:22:29 +0100 Subject: [PATCH] Fix statusbar date when time in minutes and show date with time are both on. --- src/strings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strings.cpp b/src/strings.cpp index 9cd544243b..c5dd3c222b 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -412,7 +412,7 @@ static char *FormatWallClockString(char *buff, DateTicks ticks, const char *last seprintf(hour, lastof(hour), "%02i", MINUTES_HOUR(minutes) ); seprintf(minute, lastof(minute), "%02i", MINUTES_MINUTE(minutes)); if (show_date) { - int64 args[3] = { (int64)hour, (int64)minute, (int64)ticks / DAY_TICKS }; + int64 args[3] = { (int64)hour, (int64)minute, (int64)ticks / (DAY_TICKS * _settings_game.economy.day_length_factor) }; if (_settings_client.gui.date_with_time == 1) { YearMonthDay ymd; ConvertDateToYMD(args[2], &ymd);