Skip to content

Commit

Permalink
use local timezone on search term for timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Dec 7, 2024
1 parent 3dc1fb9 commit d29c70b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/timeline_view.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use anyhow::Result;
use chrono::Local;
use gtk::{
glib::{self, clone, closure_local},
prelude::*,
Expand Down Expand Up @@ -287,7 +288,7 @@ mod imp {
[
Some(item.entity_id().to_string()),
entity.stock_id().map(|s| s.to_string()),
Some(item.dt().format("%B %Y").to_string()),
Some(item.dt().with_timezone(&Local).format("%B %Y").to_string()),
]
.into_iter()
.flatten()
Expand Down

0 comments on commit d29c70b

Please sign in to comment.