mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-21 17:56:31 +00:00
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…
x
Reference in New Issue
Block a user