changeset 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 66f4511aab1d
children e2c016bb436f
files libpurple/protocols/oscar/userinfo.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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 */