From dbaaec9071db0535808e05a4937c135d41d35df3 Mon Sep 17 00:00:00 2001 From: notiant <238434866+notiant@users.noreply.github.com> Date: Wed, 22 Oct 2025 03:04:46 +0200 Subject: [PATCH] Fix wrong display of the day names in the weather forecast Copied this from CalendarPanel.qml --- Modules/LockScreen/LockScreen.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Modules/LockScreen/LockScreen.qml b/Modules/LockScreen/LockScreen.qml index be86b62b..f2936c48 100644 --- a/Modules/LockScreen/LockScreen.qml +++ b/Modules/LockScreen/LockScreen.qml @@ -818,7 +818,10 @@ Loader { spacing: 3 NText { - text: Qt.locale().toString(now, "ddd") + text: { + var weatherDate = new Date(LocationService.data.weather.daily.time[index].replace(/-/g, "/")) + return Qt.locale().toString(weatherDate, "ddd") + } pointSize: Style.fontSizeM color: Color.mOnSurfaceVariant horizontalAlignment: Text.AlignHCenter