fixup! Get gmtOffset from weather data, for use in all NTP requests

pull/188/head
Olivier Mehani 2022-10-24 22:20:12 +11:00
parent 2bd89ef250
commit c750754e8a
No known key found for this signature in database
GPG Key ID: A08FAA9B6A81D925
1 changed files with 1 additions and 0 deletions

View File

@ -622,6 +622,7 @@ weatherData Watchy::getWeatherData(String cityID, String units, String lang,
responseObject["weather"][0]["main"];
// sync NTP during weather API call and use timezone of city
gmtOffset = int(responseObject["timezone"]);
syncNTP(gmtOffset);
} else {
// http error
}