-
Notifications
You must be signed in to change notification settings - Fork 51
Closed
Labels
bug 🐛Something isn't workingSomething isn't working
Milestone
Description
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.
Line 1110 in a3036e0
syncTime(); |
time_t STM32RTC::getEpoch(uint32_t *subSeconds)
{
struct tm tm;
syncDate();
syncTime(); // <-- date may have changed and time sometimes reads 00:00:00 of the following date.
Discussion here
https://github.com/orgs/stm32duino/discussions/2600#discussioncomment-11545824
Metadata
Metadata
Assignees
Labels
bug 🐛Something isn't workingSomething isn't working
Type
Projects
Status
Done