ESP32 RTC: date when using UTC offset

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
MJU20
Posts: 244
http://meble-kuchenne.info.pl
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 75 times
Been thanked: 50 times

Flowcode v10 ESP32 RTC: date when using UTC offset

Post 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..

MJU20
Posts: 244
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 75 times
Been thanked: 50 times

Re: ESP32 RTC: date when using UTC offset

Post by MJU20 »

Is this right?

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: ESP32 RTC: date when using UTC offset

Post by BenR »

Hello,

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

MJU20
Posts: 244
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 75 times
Been thanked: 50 times

Re: ESP32 RTC: date when using UTC offset

Post by MJU20 »

Sometimes 3600, sometimes 7200.
This is because of DST

Post Reply