[gaim-migrate @ 12567]

Tue, 26 Apr 2005 22:27:49 +0000

author
Nathan Walp <nwalp@pidgin.im>
date
Tue, 26 Apr 2005 22:27:49 +0000
changeset 10876
276eb05e6276
parent 10875
bd4a5904e395
child 10877
4c7371150f56

[gaim-migrate @ 12567]
ditto for head

src/util.c file | annotate | diff | comparison | revisions
--- a/src/util.c	Tue Apr 26 04:35:22 2005 +0000
+++ b/src/util.c	Tue Apr 26 22:27:49 2005 +0000
@@ -553,6 +553,8 @@
 					tzoff *= -1;
 			}
 
+			t->tm_isdst = -1;
+
 			if (tzoff || utc) {
 #ifdef HAVE_TM_GMTOFF
 				tzoff += t->tm_gmtoff;
@@ -560,13 +562,13 @@
 #	ifdef HAVE_TIMEZONE
 				tzset();    /* making sure */
 				tzoff -= timezone;
+				t->tm_isdst = 0; /* I think this might fix it */
 #	endif
 #endif
 			}
 		}
 	}
 
-	t->tm_isdst = -1;
 	retval = mktime(t);
 	retval += tzoff;
 

mercurial