fix wrong date on third day of weekly weather
fixes #I9MP2P Signed-off-by: 侯红勋 <houhongxun@kylinos.cn> (cherry picked from commit d39b0b7191eb2987129a75701d848f6e5b1be71a)
This commit is contained in:
parent
9e1e21b3da
commit
fa822fbf63
29
0001-fix-wrong-date-on-third-day-of-weekly-weather.patch
Normal file
29
0001-fix-wrong-date-on-third-day-of-weekly-weather.patch
Normal file
@ -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?= <houhongxun@kylinos.cn>
|
||||||
|
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: 侯红勋 <houhongxun@kylinos.cn>
|
||||||
|
---
|
||||||
|
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
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: kylin-weather
|
Name: kylin-weather
|
||||||
Version: 3.1.2
|
Version: 3.1.2
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: Indicator that displays China weather information
|
Summary: Indicator that displays China weather information
|
||||||
License: GPL-3.0+
|
License: GPL-3.0+
|
||||||
URL: https://gitee.com/openkylin/kylin-weather
|
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
|
Patch02: 0001-fix-coredump-of-kylin-weather.patch
|
||||||
Patch03: 0001-use-QRandomGenerator-and-fix-code-error.patch
|
Patch03: 0001-use-QRandomGenerator-and-fix-code-error.patch
|
||||||
Patch04: 0001-use-reference-when-appropriate.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: qt5-qtbase-devel
|
||||||
BuildRequires: qtchooser
|
BuildRequires: qtchooser
|
||||||
@ -34,6 +35,7 @@ change it.
|
|||||||
%patch 2 -p1
|
%patch 2 -p1
|
||||||
%patch 3 -p1
|
%patch 3 -p1
|
||||||
%patch 4 -p1
|
%patch 4 -p1
|
||||||
|
%patch 5 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir build && pushd build
|
mkdir build && pushd build
|
||||||
@ -68,6 +70,9 @@ fi
|
|||||||
%{_datadir}/kylin-user-guide/*
|
%{_datadir}/kylin-user-guide/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 08 2024 houhongxun <houhongxun@kylinos.cn> - 3.1.2-6
|
||||||
|
- fix wrong date on third day of weekly weather
|
||||||
|
|
||||||
* Wed May 08 2024 houhongxun <houhongxun@kylinos.cn> - 3.1.2-5
|
* Wed May 08 2024 houhongxun <houhongxun@kylinos.cn> - 3.1.2-5
|
||||||
- use reference when appropriate
|
- use reference when appropriate
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user