fbiego / ESP32Time

An Arduino library for setting and retrieving internal RTC time on ESP32 boards
MIT License
222 stars 37 forks source link

default offset not initialize as Zero (UTC) #39

Closed johnnytolengo closed 8 months ago

johnnytolengo commented 9 months ago

For UTC:

long offset; shuld be initialized as: long offset = 0;

I spent a one hour to find out where was my issue, finaly I saw that if you don't initialize the offset the time you get is wrong. @fbiego please fix it.