We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b603153 + c481302 commit b6548f1Copy full SHA for b6548f1
src/RTCZero.cpp
@@ -392,7 +392,7 @@ void RTCZero::setAlarmEpoch(uint32_t ts)
392
time_t t = ts;
393
struct tm* tmp = gmtime(&t);
394
395
- setAlarmDate(tmp->tm_year - EPOCH_TIME_YEAR_OFF, tmp->tm_mon + 1, tmp->tm_mday);
+ setAlarmDate(tmp->tm_mday, tmp->tm_mon + 1, tmp->tm_year - EPOCH_TIME_YEAR_OFF);
396
setAlarmTime(tmp->tm_hour, tmp->tm_min, tmp->tm_sec);
397
}
398
0 commit comments