From: Roman Moravcik Date: Thu, 14 Oct 2010 10:29:08 +0000 (+0200) Subject: Fill DST flag in current and next birhday structs to fix calculation of X-Git-Tag: v0.2-1~11 X-Git-Url: http://git.maemo.org/git/?p=birthday;a=commitdiff_plain;h=981a007f9f45a74ec8210838b43a6b2fc0d2ddeb Fill DST flag in current and next birhday structs to fix calculation of next birthday. --- diff --git a/src/birthday.c b/src/birthday.c index 00c200c..b424e74 100644 --- a/src/birthday.c +++ b/src/birthday.c @@ -303,6 +303,7 @@ calc_next_bday (EContactDate *bdate, time_t current_date) current_bday_tm.tm_mday = bdate->day; current_bday_tm.tm_mon = bdate->month - 1; current_bday_tm.tm_year = current_date_tm->tm_year; + current_bday_tm.tm_isdst = current_date_tm->tm_isdst; current_bday = mktime (¤t_bday_tm); if (current_date > current_bday) { @@ -312,6 +313,7 @@ calc_next_bday (EContactDate *bdate, time_t current_date) next_bday_tm.tm_mday = bdate->day; next_bday_tm.tm_mon = bdate->month - 1; next_bday_tm.tm_year = current_date_tm->tm_year + 1; + next_bday_tm.tm_isdst = current_date_tm->tm_isdst; next_bday = mktime (&next_bday_tm); } else { next_bday = current_bday;