diff --git a/decode_time.c b/decode_time.c index ea3ebbc..02d073b 100644 --- a/decode_time.c +++ b/decode_time.c @@ -482,10 +482,10 @@ decode_time(uint8_t init_min, uint8_t minlen, uint32_t acc_minlen, time->tm_year = newtime.tm_year; time->tm_wday = newtime.tm_wday; } - } - if ((rval & DT_DSTJUMP) == 0) { - time->tm_isdst = newtime.tm_isdst; - time->tm_gmtoff = newtime.tm_gmtoff; + if ((rval & DT_DSTJUMP) == 0) { + time->tm_isdst = newtime.tm_isdst; + time->tm_gmtoff = newtime.tm_gmtoff; + } } if (!ok) olderr = true;