aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-08-01 19:10:35 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-08-01 19:12:11 +0800
commit4651fb354e601f34dc9df08f2b506f765e455ead (patch)
treeffa63930359bdacc15b422b09e3379b192ee3a94
parent8d014e2a3b73644a51fa341a036a6df0221bc66d (diff)
downloadgsoc2013-empathy-4651fb354e601f34dc9df08f2b506f765e455ead.tar
gsoc2013-empathy-4651fb354e601f34dc9df08f2b506f765e455ead.tar.gz
gsoc2013-empathy-4651fb354e601f34dc9df08f2b506f765e455ead.tar.bz2
gsoc2013-empathy-4651fb354e601f34dc9df08f2b506f765e455ead.tar.lz
gsoc2013-empathy-4651fb354e601f34dc9df08f2b506f765e455ead.tar.xz
gsoc2013-empathy-4651fb354e601f34dc9df08f2b506f765e455ead.tar.zst
gsoc2013-empathy-4651fb354e601f34dc9df08f2b506f765e455ead.zip
chat_text_maybe_append_date_and_time: compute the right delta between timestamps
The first argument of g_date_time_difference() should be the older timestamp. https://bugzilla.gnome.org/show_bug.cgi?id=654958
-rw-r--r--libempathy-gtk/empathy-chat-text-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-chat-text-view.c b/libempathy-gtk/empathy-chat-text-view.c
index 18d12963e..248999427 100644
--- a/libempathy-gtk/empathy-chat-text-view.c
+++ b/libempathy-gtk/empathy-chat-text-view.c
@@ -453,7 +453,7 @@ chat_text_maybe_append_date_and_time (EmpathyChatTextView *view,
/* Get the date of the message we are appending */
date = g_date_time_new_from_unix_utc (timestamp);
- delta = g_date_time_difference (last_date, date);
+ delta = g_date_time_difference (date, last_date);
/* If last message was from another day we append date and time */
if (delta >= G_TIME_SPAN_DAY) {
append_date = TRUE;