Fix quick restarts future time

This commit is contained in:
Theo Arends 2022-06-15 18:44:36 +02:00
parent 153068882c
commit f10c7f06bf
1 changed files with 1 additions and 1 deletions

View File

@ -489,7 +489,7 @@ void RtcInit(void) {
if (Settings->cfg_timestamp > START_VALID_TIME) {
// Fix file timestamp while utctime is not synced
uint32_t local_time = Settings->cfg_timestamp +2;
uint32_t local_time = Settings->cfg_timestamp +1;
RtcGetDaylightSavingTimes(local_time);
local_time += RtcTimeZoneOffset(local_time);
RtcSetTimeOfDay(local_time);