[empathy: 18/19] chat_text_view_append_timestamp: use empathy_time_to_string_utc()



commit eb6ab4328849a0c5ee5959560f90f36fd71a815d
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Apr 19 12:18:02 2011 +0200

    chat_text_view_append_timestamp: use empathy_time_to_string_utc()

 libempathy-gtk/empathy-chat-text-view.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/libempathy-gtk/empathy-chat-text-view.c b/libempathy-gtk/empathy-chat-text-view.c
index b04d3e9..18d1296 100644
--- a/libempathy-gtk/empathy-chat-text-view.c
+++ b/libempathy-gtk/empathy-chat-text-view.c
@@ -410,15 +410,11 @@ chat_text_view_append_timestamp (EmpathyChatTextView *view,
 
 	/* Append date if needed */
 	if (show_date) {
-		GDateTime *date;
-
-		date = g_date_time_new_from_unix_utc (timestamp);
 		/* Translators: timestamp displayed between conversations in
 		 * chat windows (strftime format string) */
-		tmp = g_date_time_format (date, _("%A %B %d %Y"));
+		tmp = empathy_time_to_string_utc (timestamp, _("%A %B %d %Y"));
 		g_string_append (str, tmp);
 		g_string_append (str, ", ");
-		g_date_time_unref (date);
 		g_free (tmp);
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]