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

Commit

Permalink
When it is Sunday, lastday of wintermonth, 00:mm hour, it is also sti…
Browse files Browse the repository at this point in the history
…ll DST.
  • Loading branch information
René Ladan committed Dec 26, 2015
1 parent 8c59e68 commit 13a8d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decode_time.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 13a8d04

Please sign in to comment.