mirror of https://github.com/sqfmi/Watchy.git
fixup! Get gmtOffset from weather data, for use in all NTP requests
parent
2bd89ef250
commit
c750754e8a
|
@ -622,6 +622,7 @@ weatherData Watchy::getWeatherData(String cityID, String units, String lang,
|
||||||
responseObject["weather"][0]["main"];
|
responseObject["weather"][0]["main"];
|
||||||
// sync NTP during weather API call and use timezone of city
|
// sync NTP during weather API call and use timezone of city
|
||||||
gmtOffset = int(responseObject["timezone"]);
|
gmtOffset = int(responseObject["timezone"]);
|
||||||
|
syncNTP(gmtOffset);
|
||||||
} else {
|
} else {
|
||||||
// http error
|
// http error
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue