diff --git a/0001-fix-wrong-date-on-third-day-of-weekly-weather.patch b/0001-fix-wrong-date-on-third-day-of-weekly-weather.patch new file mode 100644 index 0000000000000000000000000000000000000000..c0a13c199b397222a9ecc9fda581be4f57cdbc90 --- /dev/null +++ b/0001-fix-wrong-date-on-third-day-of-weekly-weather.patch @@ -0,0 +1,29 @@ +From 3fcd75a2cb1b348e896ebf64034ce0e0eec0628e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=E4=BE=AF=E7=BA=A2=E5=8B=8B?= +Date: Wed, 8 May 2024 14:16:18 +0800 +Subject: [PATCH] fix wrong date on third day of weekly weather +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: 侯红勋 +--- + view/horscreen/weekweather.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/view/horscreen/weekweather.cpp b/view/horscreen/weekweather.cpp +index 7124717..5e9f8a3 100644 +--- a/view/horscreen/weekweather.cpp ++++ b/view/horscreen/weekweather.cpp +@@ -286,7 +286,7 @@ void weekweather::getForcastInfor(ForecastWeather m_forecastWeather, int m_isFul + m_onedayweatherthree->m_dayOfWeek->setText("N/A"); + } else { + QString monthThree = timeThird.toString("MM"); +- QString dateThree = timeThird.toString("MM"); ++ QString dateThree = timeThird.toString("dd"); + if ("0" == monthThree.mid(0, 1)) { + monthThree = monthThree.mid(1, 1); + } +-- +2.43.0 + diff --git a/kylin-weather.spec b/kylin-weather.spec index fe9ef3f05bea00af472a805c191bba2d7e8e4f31..57332912f643f900c78ebc52ccc06d24a554e9a2 100644 --- a/kylin-weather.spec +++ b/kylin-weather.spec @@ -1,6 +1,6 @@ Name: kylin-weather Version: 3.1.2 -Release: 5 +Release: 6 Summary: Indicator that displays China weather information License: GPL-3.0+ URL: https://gitee.com/openkylin/kylin-weather @@ -9,6 +9,7 @@ Patch01: 0001-fix-compile-error-of-kylin-weather.patch Patch02: 0001-fix-coredump-of-kylin-weather.patch Patch03: 0001-use-QRandomGenerator-and-fix-code-error.patch Patch04: 0001-use-reference-when-appropriate.patch +Patch05: 0001-fix-wrong-date-on-third-day-of-weekly-weather.patch BuildRequires: qt5-qtbase-devel BuildRequires: qtchooser @@ -34,6 +35,7 @@ change it. %patch 2 -p1 %patch 3 -p1 %patch 4 -p1 +%patch 5 -p1 %build mkdir build && pushd build @@ -68,6 +70,9 @@ fi %{_datadir}/kylin-user-guide/* %changelog +* Wed May 08 2024 houhongxun - 3.1.2-6 +- fix wrong date on third day of weekly weather + * Wed May 08 2024 houhongxun - 3.1.2-5 - use reference when appropriate