Some extra information;
This is the debug output for NTP.
RTC current date: Set 06 2018
12:24:18.267 -> RTC current time: 12:24:18
12:24:18.267 -> Sending NTP request to sync clock...
12:24:18.301 -> NTP replied
12:24:18.301 -> UTC time from NTP server: 01:24:18
12:24:18.339 -> RTC adjusted to local time: 12:24:18
WiFi connection is ON
Something interesting is if I restart it again before the big clock appears the debug output is still showing the "RTC current date: Set 06 2018" is this where it is getting the incorrect "06-09-2018" date from?
RTC current date: Set 06 2018
12:28:04.815 -> RTC current time: 12:28:03
12:28:04.815 -> Sending NTP request to sync clock...
12:28:04.856 -> NTP replied
12:28:04.856 -> UTC time from NTP server: 01:28:05
12:28:04.856 -> RTC adjusted to local time: 12:28:05
WiFi connection is ON
But if I leave it to do another NTP update without reseting the unit the date the RTC date does change "RTC current date: Oct 16 2018" But on another rest the RTC goes back to "RTC current date: Set 06 2018"
ESP8266 FW Version: AT+GMR
12:27:55.207 -> AT version:1.2.0.0(Jul 1 2016 20:04:45)
12:27:55.245 -> SDK version:1.5.4.1(39cb9a32)
12:27:55.245 -> Ai-Thinker Technology Co. Ltd.
12:27:55.283 -> Dec 2 2016 14:21:16
12:27:55.283 -> OK
RTC current date: Set 06 2018
12:28:04.815 -> RTC current time: 12:28:03
12:28:04.815 -> Sending NTP request to sync clock...
12:28:04.856 -> NTP replied
12:28:04.856 -> UTC time from NTP server: 01:28:05
12:28:04.856 -> RTC adjusted to local time: 12:28:05
WiFi connection is ON
RTC current date: Oct 16 2018
12:31:14.196 -> RTC current time: 12:31:14
12:31:14.233 -> Sending NTP request to sync clock...
12:31:14.233 -> NTP replied
12:31:14.233 -> UTC time from NTP server: 01:31:14
12:31:14.269 -> RTC adjusted to local time: 12:31:14
ESP8266 FW Version: WIFI GOT IP
12:32:08.495 -> AT+GMR
12:32:08.495 -> AT version:1.2.0.0(Jul 1 2016 20:04:45)
12:32:08.564 -> SDK version:1.5.4.1(39cb9a32)
12:32:08.564 -> Ai-Thinker Technology Co. Ltd.
12:32:08.564 -> Dec 2 2016 14:21:16
12:32:08.564 -> OK
RTC current date: Set 06 2018
12:32:18.105 -> RTC current time: 12:32:17
12:32:18.105 -> Sending NTP request to sync clock...
NTP replied
12:32:18.174 -> UTC time from NTP server: 01:32:18
12:32:18.212 -> RTC adjusted to local time: 12:32:18
WiFi connection is ON
This is the debug output for NTP.
RTC current date: Set 06 2018
12:24:18.267 -> RTC current time: 12:24:18
12:24:18.267 -> Sending NTP request to sync clock...
12:24:18.301 -> NTP replied
12:24:18.301 -> UTC time from NTP server: 01:24:18
12:24:18.339 -> RTC adjusted to local time: 12:24:18
WiFi connection is ON
Something interesting is if I restart it again before the big clock appears the debug output is still showing the "RTC current date: Set 06 2018" is this where it is getting the incorrect "06-09-2018" date from?
RTC current date: Set 06 2018
12:28:04.815 -> RTC current time: 12:28:03
12:28:04.815 -> Sending NTP request to sync clock...
12:28:04.856 -> NTP replied
12:28:04.856 -> UTC time from NTP server: 01:28:05
12:28:04.856 -> RTC adjusted to local time: 12:28:05
WiFi connection is ON
But if I leave it to do another NTP update without reseting the unit the date the RTC date does change "RTC current date: Oct 16 2018" But on another rest the RTC goes back to "RTC current date: Set 06 2018"
ESP8266 FW Version: AT+GMR
12:27:55.207 -> AT version:1.2.0.0(Jul 1 2016 20:04:45)
12:27:55.245 -> SDK version:1.5.4.1(39cb9a32)
12:27:55.245 -> Ai-Thinker Technology Co. Ltd.
12:27:55.283 -> Dec 2 2016 14:21:16
12:27:55.283 -> OK
RTC current date: Set 06 2018
12:28:04.815 -> RTC current time: 12:28:03
12:28:04.815 -> Sending NTP request to sync clock...
12:28:04.856 -> NTP replied
12:28:04.856 -> UTC time from NTP server: 01:28:05
12:28:04.856 -> RTC adjusted to local time: 12:28:05
WiFi connection is ON
RTC current date: Oct 16 2018
12:31:14.196 -> RTC current time: 12:31:14
12:31:14.233 -> Sending NTP request to sync clock...
12:31:14.233 -> NTP replied
12:31:14.233 -> UTC time from NTP server: 01:31:14
12:31:14.269 -> RTC adjusted to local time: 12:31:14
ESP8266 FW Version: WIFI GOT IP
12:32:08.495 -> AT+GMR
12:32:08.495 -> AT version:1.2.0.0(Jul 1 2016 20:04:45)
12:32:08.564 -> SDK version:1.5.4.1(39cb9a32)
12:32:08.564 -> Ai-Thinker Technology Co. Ltd.
12:32:08.564 -> Dec 2 2016 14:21:16
12:32:08.564 -> OK
RTC current date: Set 06 2018
12:32:18.105 -> RTC current time: 12:32:17
12:32:18.105 -> Sending NTP request to sync clock...
NTP replied
12:32:18.174 -> UTC time from NTP server: 01:32:18
12:32:18.212 -> RTC adjusted to local time: 12:32:18
WiFi connection is ON

