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:
parent
82ce2426c1
commit
06177701bf
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue