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

pull/188/head
Olivier Mehani 11 months ago
parent 2bd89ef250
commit c750754e8a
No known key found for this signature in database
GPG Key ID: A08FAA9B6A81D925

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

Loading…
Cancel
Save