From d0e86d0a8ebb6bbb254a0fb7474d09c58d8379e3 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 31 Aug 2017 22:22:44 +0200 Subject: small fixes --- main/src/ui/conversation_selector/conversation_row.vala | 4 ++-- main/src/ui/conversation_selector/list.vala | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'main/src/ui/conversation_selector') diff --git a/main/src/ui/conversation_selector/conversation_row.vala b/main/src/ui/conversation_selector/conversation_row.vala index d9432583..ec00349b 100644 --- a/main/src/ui/conversation_selector/conversation_row.vala +++ b/main/src/ui/conversation_selector/conversation_row.vala @@ -56,7 +56,7 @@ public abstract class ConversationRow : ListBoxRow { Entities.Message? message = stream_interactor.get_module(MessageStorage.IDENTITY).get_last_message(conversation); if (message != null) { update_message(message.body.replace("\n", " ")); - update_time(message.time.to_utc()); + update_time(message.time); } } @@ -89,7 +89,7 @@ public abstract class ConversationRow : ListBoxRow { time = new_time; } if (time != null) { - time_label.label = get_relative_time(time); + time_label.label = get_relative_time(time.to_local()); } } diff --git a/main/src/ui/conversation_selector/list.vala b/main/src/ui/conversation_selector/list.vala index 0e0ce554..c46376ed 100644 --- a/main/src/ui/conversation_selector/list.vala +++ b/main/src/ui/conversation_selector/list.vala @@ -206,4 +206,4 @@ public class List : ListBox { } } -} \ No newline at end of file +} -- cgit v1.2.3-70-g09d2