Search found 1 match
- Fri Apr 03, 2020 10:14 am
- Forum: ESP8266 boards
- Topic: timezone support in MicroPython ?
- Replies: 23
- Views: 106008
Re: timezone support in MicroPython ?
Easiest way I found is changing ntptimes internal NTP_DELTA Variable, so it calculates it right. Run ntptime.settime() after boardinit to have the correct time before execution. Get tuple afterwards with utime.localtime() def getntptime(timer): year = utime.localtime()[0] #get current year now=ntpti...