From 06177701bfb3821f81c6ac35109f32cf55cd5ab9 Mon Sep 17 00:00:00 2001 From: selurvedu <11262062+selurvedu@users.noreply.github.com> Date: Wed, 20 May 2020 22:37:13 +0300 Subject: [PATCH] Global search: Display dates in local timezone (#855) This fixes message dates being displayed in UTC in the message search sidebar. Co-authored-by: selurvedu --- main/src/ui/global_search.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/ui/global_search.vala b/main/src/ui/global_search.vala index e4544015..50ebfdb8 100644 --- a/main/src/ui/global_search.vala +++ b/main/src/ui/global_search.vala @@ -160,7 +160,7 @@ public class GlobalSearch : Overlay { context_box.add(get_context_message_widget(after_message.first())); } - Label date_label = new Label(ConversationSummary.ItemMetaDataHeader.get_relative_time(item.display_time)) { xalign=0, visible=true }; + Label date_label = new Label(ConversationSummary.ItemMetaDataHeader.get_relative_time(item.display_time.to_local())) { xalign=0, visible=true }; date_label.get_style_context().add_class("dim-label"); string display_name = Util.get_conversation_display_name(stream_interactor, item.conversation);