From 83258b0b3e45dee5002644437b977ae0ae7ea63b Mon Sep 17 00:00:00 2001 From: Alex Goodyear Date: Wed, 12 Aug 2020 11:39:44 +0100 Subject: [PATCH] Remove incorrect DST code --- src/drive/rtc/pcf8563.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/drive/rtc/pcf8563.cpp b/src/drive/rtc/pcf8563.cpp index 6ec202d..bc683cd 100644 --- a/src/drive/rtc/pcf8563.cpp +++ b/src/drive/rtc/pcf8563.cpp @@ -339,16 +339,6 @@ void PCF8563_Class::syncToSystem() val.tv_sec = mktime(&t_tm); val.tv_usec = 0; - if ((dt.month > 2) && (dt.month < 11)) { - uint32_t day3 = getDayOfWeek (31, 3, dt.year); - uint32_t day10 = getDayOfWeek (31, 10, dt.year); - - if (!((dt.day <= (31 - (6 - day3))) && (dt.month == 3)) || - !((dt.day >= (31 - (6 - day10))) && (dt.month == 10))) { - val.tv_sec += 60 * 60; - } - } - settimeofday(&val, NULL); // log_i("syncToSystem: %d %d %d - %d %d %d \n", t_tm.tm_year, t_tm.tm_mon + 1, t_tm.tm_mday, t_tm.tm_hour, t_tm.tm_min, t_tm.tm_sec); }