Location/Weather: using a different API to geocode location name + fixed weather display which was offseted by a day
This commit is contained in:
parent
5a1ebcd296
commit
0b5e2e86f0
3 changed files with 11 additions and 7 deletions
|
|
@ -90,7 +90,10 @@ NBox {
|
|||
Layout.alignment: Qt.AlignHCenter
|
||||
spacing: Style.marginS * scaling
|
||||
NText {
|
||||
text: Qt.formatDateTime(new Date(LocationService.data.weather.daily.time[index]), "ddd")
|
||||
text: {
|
||||
var weatherDate = new Date(LocationService.data.weather.daily.time[index].replace(/-/g, "/"))
|
||||
return Qt.formatDateTime(weatherDate, "ddd")
|
||||
}
|
||||
color: Color.mOnSurface
|
||||
}
|
||||
NIcon {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue