You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ran into an issue where the epoch time was off by exactly one day. This is caused by getEpoch function first reading date and then reading time. Date time may have rolled over to new day in between.
time_tSTM32RTC::getEpoch(uint32_t *subSeconds)
{
structtm tm;
syncDate();
syncTime(); // <-- date may have changed and time sometimes reads 00:00:00 of the following date.
Ran into an issue where the epoch time was off by exactly one day. This is caused by getEpoch function first reading date and then reading time. Date time may have rolled over to new day in between.
STM32RTC/src/STM32RTC.cpp
Line 1110 in a3036e0
Discussion here
https://github.com/orgs/stm32duino/discussions/2600#discussioncomment-11545824
The text was updated successfully, but these errors were encountered: