fbiego / ESP32Time

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

Offset is unsigned #23

Closed gonzabrusco closed 1 year ago

gonzabrusco commented 1 year ago

Hello. Not sure if this is a bug or not. The offset type was originally signed long, but now you changed it to unsigned long. Is that correct? How do I set a GMT -3 ?

Thanks Gonzalo

gonzabrusco commented 1 year ago

Nevermind, not really sure why, but it worked nevertheless. Probably just a matter of unit interpretation.

06GitHub commented 1 year ago
ESP32Time rtc(0);
...
rtc.offset=-3600; // negative offset

works for me