summaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index 8a8de75..a9a9e68 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -525,10 +525,11 @@ int date_change(struct tm *date, int delta_month, int delta_day)
t = *date;
t.tm_mon += delta_month;
t.tm_mday += delta_day;
-
+ t.tm_isdst = -1;
if (mktime(&t) == -1) {
return 1;
} else {
+ t.tm_isdst = -1;
*date = t;
return 0;
}