- Connect the ESP-12F to the Linux machine on USB0 port
- From Linux console login into the ESP-12F
$ picocom /dev/ttyUSB0 -b115200
- Try to set the clock under micropython
>>> import utime
>>> import machine
>>> time=(2021, 11, 21, 23, 42, 0, 6, 325)
>>> machine.RTC().datetime(time)
>>> utime.localtime()
(2021, 11, 22, 18, 0, 11, 0, 326)
As you can see, the time changed and consequently the day as well. If I understand ~19 hours was added to the time what I wanted. Can you tell me what did I wrong here? Is not the right way to set the time? (I do not want to syc, I just want to set)