From f10c7f06bf4edbb1dfef05bd8f800f867eac6e95 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 15 Jun 2022 18:44:36 +0200 Subject: [PATCH] Fix quick restarts future time --- tasmota/tasmota_support/support_rtc.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_support/support_rtc.ino b/tasmota/tasmota_support/support_rtc.ino index 7eab3d91f..aac70eac4 100644 --- a/tasmota/tasmota_support/support_rtc.ino +++ b/tasmota/tasmota_support/support_rtc.ino @@ -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);