usually it's like you need the RTC time and somehow it's not right, with me it's the other way round. My ESP8266 knows exactly what time it is, but I have no idea how it knows. I don't have wifi configured and it's only connected to the PC via the USB port, but after:
Code: Select all
from machine import RTC
rtc = RTC()
rtc.datetime()