aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-04-19 18:18:02 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-04-19 18:18:02 +0800
commiteb6ab4328849a0c5ee5959560f90f36fd71a815d (patch)
tree1ac38927a1806d27405e3ccbefa92fa4b47bf129
parent92af7e9f7c5f114963299fcf53b48b4ed86a2f7b (diff)
downloadgsoc2013-empathy-eb6ab4328849a0c5ee5959560f90f36fd71a815d.tar
gsoc2013-empathy-eb6ab4328849a0c5ee5959560f90f36fd71a815d.tar.gz
gsoc2013-empathy-eb6ab4328849a0c5ee5959560f90f36fd71a815d.tar.bz2
gsoc2013-empathy-eb6ab4328849a0c5ee5959560f90f36fd71a815d.tar.lz
gsoc2013-empathy-eb6ab4328849a0c5ee5959560f90f36fd71a815d.tar.xz
gsoc2013-empathy-eb6ab4328849a0c5ee5959560f90f36fd71a815d.tar.zst
gsoc2013-empathy-eb6ab4328849a0c5ee5959560f90f36fd71a815d.zip
chat_text_view_append_timestamp: use empathy_time_to_string_utc()
-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);
}