changeset 9680:958cfbb47ad6

[gaim-migrate @ 10532] Dave West fixed bug 720441, "ICQ Offline messages have GMT timestamp." Thanks! committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 05 Aug 2004 21:15:41 +0000
parents 9c9932c9cd09
children 6fd2bd5446e4
files COPYRIGHT ChangeLog src/protocols/oscar/oscar.c
diffstat 3 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/COPYRIGHT	Thu Aug 05 19:18:06 2004 +0000
+++ b/COPYRIGHT	Thu Aug 05 21:15:41 2004 +0000
@@ -163,6 +163,7 @@
 Nathan Walp
 Eric Warmenhoven
 Andrew Wellington
+Dave West
 Andrew Whewell
 Dan Willemsen
 Jason Willis
--- a/ChangeLog	Thu Aug 05 19:18:06 2004 +0000
+++ b/ChangeLog	Thu Aug 05 21:15:41 2004 +0000
@@ -47,6 +47,7 @@
 	  another location (Stu Tomlinson)
 	* On Solaris, chatting in IRC using the UTF-8 charset no longer gives
 	  a "conversion failed" error for every message (Arvind Samptur)
+	* ICQ offline messages should have the correct timestamp (Dave West)
 
 version 0.80 (07/15/2004):
 	New Features:
--- a/src/protocols/oscar/oscar.c	Thu Aug 05 19:18:06 2004 +0000
+++ b/src/protocols/oscar/oscar.c	Thu Aug 05 21:15:41 2004 +0000
@@ -3506,7 +3506,9 @@
 				tmp = gaim_escape_html(msg2[0]);
 
 				if (t) { /* This is an offline message */
-					/* I think this timestamp is in UTC, or something */
+					/* The timestamp is UTC-ish, so we need to get the offset */
+					tzset();
+					t -= timezone;
 					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));