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 <selurvedu@users.noreply.github.com>
This commit is contained in:
selurvedu 2020-05-20 22:37:13 +03:00 committed by GitHub
parent 82ce2426c1
commit 06177701bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -160,7 +160,7 @@ public class GlobalSearch : Overlay {
context_box.add(get_context_message_widget(after_message.first())); 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"); date_label.get_style_context().add_class("dim-label");
string display_name = Util.get_conversation_display_name(stream_interactor, item.conversation); string display_name = Util.get_conversation_display_name(stream_interactor, item.conversation);