mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 23:18:10 +01:00
fix sntp timezone (#1266)
This commit is contained in:
parent
1a04e2d1b8
commit
5fecc70db1
1 changed files with 0 additions and 4 deletions
|
@ -33,10 +33,6 @@ void SNTPComponent::setup() {
|
||||||
sntp_setservername(2, strdup(this->server_3_.c_str()));
|
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();
|
sntp_init();
|
||||||
}
|
}
|
||||||
void SNTPComponent::dump_config() {
|
void SNTPComponent::dump_config() {
|
||||||
|
|
Loading…
Reference in a new issue