setTimeZone() was only called inside the useNtp branch, so with an empty TimeServer setting the configured TimeZone was never applied and all local times were shown in UTC.
@@ -278,10 +278,10 @@ bool setupTime() {
esp_sntp_config_t config = ESP_NETIF_SNTP_DEFAULT_CONFIG(timeServer.c_str());
config.sync_cb = time_sync_notification_cb;
esp_netif_sntp_init(&config);
-
- setTimeZone(timeZone);
}
+ setTimeZone(timeZone);
+
/* The RTC keeps the time after a restart (Except on Power On or Pin Reset)
* There should only be a minor correction through NTP */