Mercurial > pidgin
diff libpurple/protocols/oscar/userinfo.c @ 31415:729a3c968114
Ignore DST when calculating birthdays. This prevents an off-by-one-day
condition. Fixes #13533.
committer: John Bailey <rekkanoryo@rekkanoryo.org>
author | dzlists@arcor.de |
---|---|
date | Thu, 24 Mar 2011 21:27:47 +0000 |
parents | 1558900f47e5 |
children | d4b7770324f8 |
line wrap: on
line diff
--- 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 */