mirror of https://github.com/arendst/Tasmota.git
Fix quick restarts future time
This commit is contained in:
parent
153068882c
commit
f10c7f06bf
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue