changeset 9724:6b5bd8ee11db

[gaim-migrate @ 10585] Nathan was talking about this, and he was right, dead right. "He's drunk." "Dead drunk." "It, it... flames, flames, on the side of my face, breath, heaping breath" committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 08 Aug 2004 17:15:45 +0000
parents c0961d8cb0fb
children 242a5a97c952
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Sun Aug 08 16:57:54 2004 +0000
+++ b/src/protocols/oscar/oscar.c	Sun Aug 08 17:15:45 2004 +0000
@@ -3507,8 +3507,11 @@
 				if (t) { /* This is an offline message */
 					/* The timestamp is UTC-ish, so we need to get the offset */
 #ifdef HAVE_TM_GMTOFF
-					struct tm tm;
-					t += tm.tm_gmtoff;
+					time_t now;
+					struct tm *tm;
+					now = time(NULL);
+					tm = localtime(&now);
+					t += tm->tm_gmtoff;
 #else
 #	ifdef HAVE_TIMEZONE
 					tzset();