# HG changeset patch # User dzlists@arcor.de # Date 1301002067 0 # Node ID 729a3c9681146b55dcdb0abf20ab342adea6076a # Parent 66f4511aab1d188e24c137b33ef66b83185b14c7 Ignore DST when calculating birthdays. This prevents an off-by-one-day condition. Fixes #13533. committer: John Bailey diff -r 66f4511aab1d -r 729a3c968114 libpurple/protocols/oscar/userinfo.c --- a/libpurple/protocols/oscar/userinfo.c Thu Mar 24 21:21:28 2011 +0000 +++ b/libpurple/protocols/oscar/userinfo.c Thu Mar 24 21:27:47 2011 +0000 @@ -437,6 +437,10 @@ tm->tm_mon = (int)info->birthmonth - 1; tm->tm_year = (int)info->birthyear - 1900; + /* Ignore dst setting of today to avoid timezone shift between + * dates in summer and winter time. */ + tm->tm_isdst = -1; + /* To be 100% sure that the fields are re-normalized. * If you're sure strftime() ALWAYS does this EVERYWHERE, * feel free to remove it. --rlaager */