# HG changeset patch # User Mark Doliner # Date 1091985345 0 # Node ID 6b5bd8ee11dbdbae3a1220df84634900a13a1579 # Parent c0961d8cb0fb28aeeba6ed7c6e3216fec8aac032 [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 diff -r c0961d8cb0fb -r 6b5bd8ee11db src/protocols/oscar/oscar.c --- 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();