diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/utils.c | 3 |
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; } |