30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
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
|
|
|