From c750754e8ae72f23844b75da080c7de591bd46ea Mon Sep 17 00:00:00 2001 From: Olivier Mehani Date: Mon, 24 Oct 2022 22:20:12 +1100 Subject: [PATCH] fixup! Get gmtOffset from weather data, for use in all NTP requests --- src/Watchy.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Watchy.cpp b/src/Watchy.cpp index 988ef97..a334d65 100644 --- a/src/Watchy.cpp +++ b/src/Watchy.cpp @@ -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 }