# HG changeset patch # User Mark Doliner # Date 1091889794 0 # Node ID bd5abccacff2089b29da91da79748382c6092374 # Parent f568b6655331a09370cd06a762ca895b264e948e [gaim-migrate @ 10557] Fix the getting of the timezone offset for BSDs and OS X committer: Tailor Script diff -r f568b6655331 -r bd5abccacff2 src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Sat Aug 07 09:07:20 2004 +0000 +++ b/src/protocols/oscar/oscar.c Sat Aug 07 14:43:14 2004 +0000 @@ -3507,8 +3507,15 @@ 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; +#else +# ifdef HAVE_TIMEZONE tzset(); t -= timezone; +# endif +#endif serv_got_im(gc, uin, tmp, 0, t); } else { /* This is a message from MacICQ/Miranda */ serv_got_im(gc, uin, tmp, 0, time(NULL));