Page 1 of 1

ESP32 RTC: date when using UTC offset

Posted: Wed Mar 27, 2024 11:12 pm
by MJU20
Is it a bug or a feature? :)

When using the RTC from the ESP32 component: shouldn't this update the date accordingly to the chosen offset in the UTC setting?

Now the time is updated to the offset in the component properties (or like in my case: the RTC_ESP32_NTP: SetUTCOffset component macro), but the date doesn't update. This changes only at the moment the UTC date changes..

Re: ESP32 RTC: date when using UTC offset

Posted: Tue Apr 09, 2024 5:09 pm
by MJU20
Is this right?

Re: ESP32 RTC: date when using UTC offset

Posted: Tue Apr 09, 2024 5:16 pm
by BenR
Hello,

I've had a look and we seem to be doing things right. What value are you using for yout UTCOffset?

Re: ESP32 RTC: date when using UTC offset

Posted: Tue Apr 09, 2024 6:33 pm
by MJU20
Sometimes 3600, sometimes 7200.
This is because of DST