From 13a8d04b22076b959233c79e5cba2ecfce082c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Ladan?= Date: Sat, 26 Dec 2015 12:18:51 +0100 Subject: [PATCH] When it is Sunday, lastday of wintermonth, 00:mm hour, it is also still DST. --- decode_time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decode_time.c b/decode_time.c index 02d073b..6590d3a 100644 --- a/decode_time.c +++ b/decode_time.c @@ -447,7 +447,7 @@ decode_time(uint8_t init_min, uint8_t minlen, uint32_t acc_minlen, (int)(lastday(*time)) - time->tm_mday >= 7) || (time->tm_mon == (int)wintermonth && time->tm_wday == 7 && (int)(lastday(*time)) - time->tm_mday < 7 && - (utchour == 23 /* previous day */ || utchour == 0))) { + (utchour >= 22 /* previous day */ || utchour == 0))) { /* expect DST */ if (newtime.tm_isdst == 0 && (announce & ANN_CHDST) == 0 && utchour < 24) {