diff src/gtkdebug.c @ 13033:69b3d5cbd2b1

[gaim-migrate @ 15389] Kill gaim_date() and gaim_date_full(). The former isn't used and the latter is used only twice. This makes the buddy pounce pop-ups and debug log headers contain localized dates, fixing part of SF Bug #1325915. Thanks to Bleeter for discovering that gaim_date() isn't used. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Wed, 25 Jan 2006 02:58:54 +0000
parents ff267281e882
children e1e5462b7d81
line wrap: on
line diff
--- a/src/gtkdebug.c	Tue Jan 24 06:08:39 2006 +0000
+++ b/src/gtkdebug.c	Wed Jan 25 02:58:54 2006 +0000
@@ -212,6 +212,8 @@
 	DebugWindow *win = (DebugWindow *)user_data;
 	FILE *fp;
 	char *tmp;
+	time_t now = time(NULL);
+	char date[64];
 
 	if ((fp = g_fopen(filename, "w+")) == NULL) {
 		gaim_notify_error(win, NULL, _("Unable to open file."), NULL);
@@ -219,7 +221,8 @@
 	}
 
 	tmp = gtk_imhtml_get_text(GTK_IMHTML(win->text), NULL, NULL);
-	fprintf(fp, "Gaim Debug log : %s\n", gaim_date_full());
+	strftime(date, sizeof(date), "%c", localtime(&now));
+	fprintf(fp, "Gaim Debug Log : %s\n", date);
 	fprintf(fp, "%s", tmp);
 	g_free(tmp);