changeset 5112:463b03cd8c90

[gaim-migrate @ 5475] don't ignore daylight savings time committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 11 Apr 2003 21:23:02 +0000
parents a262ecfd83bb
children bac62d8d386f
files src/protocols/jabber/jabber.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c	Fri Apr 11 13:32:47 2003 +0000
+++ b/src/protocols/jabber/jabber.c	Fri Apr 11 21:23:02 2003 +0000
@@ -1232,13 +1232,13 @@
 {
 	struct tm t;
 	time_t retval = 0;
+	localtime_r(NULL, &t);
 
 	if(sscanf(timestamp, "%04d%02d%02dT%02d:%02d:%02d",
 		&t.tm_year, &t.tm_mon, &t.tm_mday, &t.tm_hour, &t.tm_min, &t.tm_sec))
 	{
 		t.tm_year -= 1900;
 		t.tm_mon -= 1;
-		t.tm_isdst = 0;
 		retval = mktime(&t);
 #		ifdef HAVE_TM_GMTOFF
 			retval += t.tm_gmtoff;