Location/Weather: using a different API to geocode location name + fixed weather display which was offseted by a day

This commit is contained in:
LemmyCook 2025-08-24 10:02:00 -04:00
parent 5a1ebcd296
commit 0b5e2e86f0
3 changed files with 11 additions and 7 deletions

View file

@ -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 {