Fix wrong display of the day names in the weather forecast

Copied this from CalendarPanel.qml
This commit is contained in:
notiant
2025-10-22 03:04:46 +02:00
committed by GitHub
parent 9bf802ab86
commit dbaaec9071
+4 -1
View File
@@ -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