src/protocols/oscar/oscar.c

changeset 9698
d83c7c4b0ccc
parent 9680
170d9c1ab218
child 9713
bb37562302a1
--- 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));

mercurial