Mercurial > pidgin
changeset 9698:bd5abccacff2
[gaim-migrate @ 10557]
Fix the getting of the timezone offset for BSDs and OS X
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 07 Aug 2004 14:43:14 +0000 |
parents | f568b6655331 |
children | 267eab8f3fa4 |
files | src/protocols/oscar/oscar.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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));