From 0918f452a02f7d5b8b1d8f4a7455f6870455ca62 Mon Sep 17 00:00:00 2001 From: Guillermo Ruffino Date: Tue, 1 Sep 2020 19:15:26 -0300 Subject: [PATCH] fix sntp timezone (#1266) --- esphome/components/sntp/sntp_component.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/esphome/components/sntp/sntp_component.cpp b/esphome/components/sntp/sntp_component.cpp index c10a3e5ac3..253f3ba2c1 100644 --- a/esphome/components/sntp/sntp_component.cpp +++ b/esphome/components/sntp/sntp_component.cpp @@ -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() {