diff plugins/log_reader.c @ 13119:fcde3faa1f57

[gaim-migrate @ 15481] This adds support for displaying log timestamps in their original timezone. If your OS's definition of struct tm sucks, then the log timestamps will show up in your local timezone, but converted, so the time is accurate. Yay! Anyway, this all works, as I've renamed lots of my log files locally, but currently, there's no code to save new logs in this name format. That's held up on a portability issue and backwards compatibility issue. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Sat, 04 Feb 2006 20:55:52 +0000
parents ae51c59bf819
children 3a97c65196d1
line wrap: on
line diff
--- a/plugins/log_reader.c	Sat Feb 04 05:17:46 2006 +0000
+++ b/plugins/log_reader.c	Sat Feb 04 20:55:52 2006 +0000
@@ -156,7 +156,8 @@
 					tm.tm_year -= 1900;
 					tm.tm_mon  -= 1;
 
-					log = gaim_log_new(GAIM_LOG_IM, sn, account, NULL, mktime(&tm));
+					/* XXX: Look into this later... Should we pass in a struct tm? */
+					log = gaim_log_new(GAIM_LOG_IM, sn, account, NULL, mktime(&tm), NULL);
 					log->logger = adium_logger;
 					log->logger_data = data;
 
@@ -216,7 +217,8 @@
 					data->path = filename;
 					data->type = ADIUM_TEXT;
 
-					log = gaim_log_new(GAIM_LOG_IM, sn, account, NULL, mktime(&tm));
+					/* XXX: Look into this later... Should we pass in a struct tm? */
+					log = gaim_log_new(GAIM_LOG_IM, sn, account, NULL, mktime(&tm), NULL);
 					log->logger = adium_logger;
 					log->logger_data = data;
 
@@ -730,7 +732,8 @@
 			data->text = NULL;
 			data->last_log = FALSE;
 
-			log = gaim_log_new(GAIM_LOG_IM, sn, account, NULL, msn_logger_parse_timestamp(message));
+			/* XXX: Look into this later... Should we pass in a struct tm? */
+			log = gaim_log_new(GAIM_LOG_IM, sn, account, NULL, msn_logger_parse_timestamp(message), NULL);
 			log->logger = msn_logger;
 			log->logger_data = data;
 
@@ -1244,8 +1247,9 @@
 						data->their_nickname =
 							g_strdup(their_nickname);
 
+						/* XXX: Look into this later... Should we pass in a struct tm? */
 						log = gaim_log_new(GAIM_LOG_IM,
-							sn, account, NULL, mktime(&tm));
+							sn, account, NULL, mktime(&tm), NULL);
 						log->logger = trillian_logger;
 						log->logger_data = data;