aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-chat-text-view.c6
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 b04d3e9d2..18d12963e 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);
}