mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-05-27 00:07:16 +00:00
Fix wrong display of the day names in the weather forecast
Copied this from CalendarPanel.qml
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user