aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorselurvedu <11262062+selurvedu@users.noreply.github.com>2020-05-20 22:37:13 +0300
committerGitHub <noreply@github.com>2020-05-20 21:37:13 +0200
commit06177701bfb3821f81c6ac35109f32cf55cd5ab9 (patch)
tree73581b7231de8c34d7383a5778b9c7fe9b0f8347
parent82ce2426c14d05b1f6b8b5863f50651a21deb10c (diff)
downloaddino-06177701bfb3821f81c6ac35109f32cf55cd5ab9.tar.gz
dino-06177701bfb3821f81c6ac35109f32cf55cd5ab9.zip
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>
-rw-r--r--main/src/ui/global_search.vala2
1 files changed, 1 insertions, 1 deletions
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);