diff plugins/history.c @ 13104:e1e5462b7d81

[gaim-migrate @ 15466] Rework lots of date parsing. I either introduced a whole lot of bugs, or I've made sure all dates are localized properly now. Only time will tell which it is... ;) committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 02 Feb 2006 19:50:51 +0000
parents ff267281e882
children fcde3faa1f57
line wrap: on
line diff
--- a/plugins/history.c	Thu Feb 02 19:39:12 2006 +0000
+++ b/plugins/history.c	Thu Feb 02 19:50:51 2006 +0000
@@ -40,8 +40,6 @@
 	char *history;
 	GaimGtkConversation *gtkconv;
 	GtkIMHtmlOptions options = GTK_IMHTML_NO_COLOURS;
-	time_t tm;
-	char day[64];
 	char *header;
 	char *protocol;
 
@@ -116,9 +114,8 @@
 	gtk_imhtml_set_protocol_name(GTK_IMHTML(gtkconv->imhtml),
 							      gaim_account_get_protocol_name(((GaimLog*)logs->data)->account));
 
-	tm = ((GaimLog *)logs->data)->time;
-	gaim_strftime(day, sizeof(day), "%c", localtime(&tm));
-	header = g_strdup_printf("<b>Conversation with %s on %s:</b><br>", alias, day);
+	header = g_strdup_printf("<b>Conversation with %s on %s:</b><br>", alias,
+							 gaim_date_format_full(((GaimLog *)logs->data)->time));
 	gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), header, options);
 	g_free(header);