fix: weather not using system timezone (#1346)

* adjusted weather.qml to ensure that it tracks system local time and date while ignoring API times if using VPN

* adjusted weather.qml to ensure that it tracks system local time and date while ignoring API times if using VPN

---------

Co-authored-by: Chris <102560999+ItsABigIgloo@users.noreply.github.com>
Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
This commit is contained in:
Chloé Legué 2026-03-28 11:56:38 -04:00 committed by GitHub
parent 980dd0b209
commit b5f761666d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -121,8 +121,8 @@ Singleton {
humidity: json.current.relative_humidity_2m, humidity: json.current.relative_humidity_2m,
windSpeed: json.current.wind_speed_10m, windSpeed: json.current.wind_speed_10m,
isDay: json.current.is_day, isDay: json.current.is_day,
sunrise: json.daily.sunrise[0], sunrise: json.daily.sunrise[0].replace("T", " "),
sunset: json.daily.sunset[0] sunset: json.daily.sunset[0].replace("T", " ")
}; };
const forecastList = []; const forecastList = [];
@ -218,7 +218,6 @@ Singleton {
target: Config.services target: Config.services
} }
// Refresh current location hourly
Timer { Timer {
interval: 3600000 // 1 hour interval: 3600000 // 1 hour
running: true running: true