From: Roman Moravcik Date: Thu, 14 Oct 2010 10:43:01 +0000 (+0200) Subject: Fill DST flag in birhday structs to fix calculation of age. X-Git-Tag: v0.2-1~10 X-Git-Url: http://git.maemo.org/git/?p=birthday;a=commitdiff_plain;h=372f9bd961a1d6b588ce333c8ee6205379a17f0f;ds=inline Fill DST flag in birhday structs to fix calculation of age. --- diff --git a/src/birthday.c b/src/birthday.c index b424e74..8799859 100644 --- a/src/birthday.c +++ b/src/birthday.c @@ -275,6 +275,7 @@ calc_age (EContactDate *bdate, time_t current_date) bday_tm.tm_mday = bdate->day; bday_tm.tm_mon = bdate->month - 1; bday_tm.tm_year = current_date_tm->tm_year; + bday_tm.tm_isdst = current_date_tm->tm_isdst; if (mktime (&bday_tm) > current_date) { age = (current_date_tm->tm_year + 1900) - bdate->year - 1;