QUERY · ISSUE
ntptime.py settime() does not cope with errors
This arose in the forum.
If an exception occurs in the time() function, msg is not updated so a value of -NTP_DELTA is returned. If this is the intended mechanism for reporting exceptions, settime() should check for this and avoid updating the RTC.
Or perhaps the finally clause in time() should re-raise the exception?
CANDIDATE · PULL REQUEST
ntptime.py: added simple timezone support.
port-esp8266
This only adds the ability to have an offset from UTC
so that the RTC can give back localtime correctly.
daylight savings time must be handled by setting the
timezone 3600 second ahead or back.
Signed-off-by: mishafarms github@mishafarms.us