diff src/debug.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 921f64947cad
children 756c3d7177d9
line wrap: on
line diff
--- a/src/debug.c	Thu Feb 02 19:39:12 2006 +0000
+++ b/src/debug.c	Thu Feb 02 19:50:51 2006 +0000
@@ -25,6 +25,7 @@
 #include "debug.h"
 #include "internal.h"
 #include "prefs.h"
+#include "util.h"
 
 static GaimDebugUiOps *debug_ui_ops = NULL;
 
@@ -57,10 +58,10 @@
 		if ((category != NULL) &&
 			(gaim_prefs_exists("/core/debug/timestamps")) &&
 			(gaim_prefs_get_bool("/core/debug/timestamps"))) {
-			gchar mdate[64];
+			const char *mdate;
 
 			time_t mtime = time(NULL);
-			strftime(mdate, sizeof(mdate), "%H:%M:%S", localtime(&mtime));
+			mdate = gaim_utf8_strftime("%H:%M:%S", localtime(&mtime));
 			ts_s = g_strdup_printf("(%s) ", mdate);
 		} else {
 			ts_s = g_strdup("");