fix sntp timezone (#1266)

This commit is contained in:
Guillermo Ruffino 2020-09-01 19:15:26 -03:00 committed by GitHub
parent 69f5d8cd0f
commit 0918f452a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,10 +33,6 @@ void SNTPComponent::setup() {
sntp_setservername(2, strdup(this->server_3_.c_str()));
}
#ifdef ARDUINO_ARCH_ESP8266
// let localtime/gmtime handle timezones, not sntp
sntp_set_timezone(0);
#endif
sntp_init();
}
void SNTPComponent::dump_config() {