pidgin: 62ec5605: Ignore DST when calculating birthdays. ...
rekkanoryo at pidgin.im
rekkanoryo at pidgin.im
Thu Mar 24 20:11:27 EDT 2011
----------------------------------------------------------------------
Revision: 62ec560595fe543af91f56e2209abd13124bd883
Parent: 200574b7b0c326a3ee0db3d459884f62d1d2aa3c
Author: dzlists at arcor.de
Date: 03/24/11 17:27:47
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/62ec560595fe543af91f56e2209abd13124bd883
Changelog:
Ignore DST when calculating birthdays. This prevents an off-by-one-day
condition. Fixes #13533.
Changes against parent 200574b7b0c326a3ee0db3d459884f62d1d2aa3c
patched libpurple/protocols/oscar/userinfo.c
-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/userinfo.c 39fdfe7ec62dd0447aa30fa1f1f671c1cc667c2f
+++ libpurple/protocols/oscar/userinfo.c 52a2a75af8d68ddc492d228231f943a1f27075fa
@@ -437,6 +437,10 @@ oscar_user_info_display_icq(OscarData *o
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 */
More information about the Commits
mailing list