From 9d5698865e1e1ffbd61b4e87ebb67a38afef6e84 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Fri, 22 Mar 2019 22:10:12 +0100 Subject: [PATCH] - weather: fix month in console log Signed-off-by: Thilo Graf --- src/gui/weather.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/weather.cpp b/src/gui/weather.cpp index f0fa0d7b7..fab7e1e11 100644 --- a/src/gui/weather.cpp +++ b/src/gui/weather.cpp @@ -152,7 +152,7 @@ bool CWeather::GetWeatherDetails() struct tm *timeinfo; timeinfo = localtime(&daily_data.timestamp); - printf("[CWeather]: temp %d.%d.%d: min %.1f - max %.1f -> %s\n", timeinfo->tm_mday, timeinfo->tm_mon, timeinfo->tm_year + 1900, daily_data.temperatureMin, daily_data.temperatureMax, daily_data.icon.c_str()); + printf("[CWeather]: temp %d.%d.%d: min %.1f - max %.1f -> %s\n", timeinfo->tm_mday, timeinfo->tm_mon + 1, timeinfo->tm_year + 1900, daily_data.temperatureMin, daily_data.temperatureMax, daily_data.icon.c_str()); v_forecast.push_back(daily_data); } return true;