Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

Commit

Permalink
Do not set the DST state if there is a generic error (e.g., short min…
Browse files Browse the repository at this point in the history
…ute).
  • Loading branch information
René Ladan committed Dec 26, 2015
1 parent 8587cd9 commit 8c59e68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions decode_time.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8c59e68

Please sign in to comment.