From 66a3634a71b122dd95fda0c10265e7f957c22e25 Mon Sep 17 00:00:00 2001 From: Julian Schmidhuber Date: Wed, 7 Jan 2026 15:56:21 +0100 Subject: [PATCH 1/3] Display local time instead of UTC Fixes #39. --- src/widgets/message_row.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/widgets/message_row.rs b/src/widgets/message_row.rs index e2c375f..29bfec9 100644 --- a/src/widgets/message_row.rs +++ b/src/widgets/message_row.rs @@ -2,7 +2,7 @@ use std::io::Read; use adw::prelude::*; use adw::subclass::prelude::*; -use chrono::NaiveDateTime; +use chrono::{Local, TimeZone}; use gtk::{gdk, gio, glib}; use ntfy_daemon::models; use tracing::error; @@ -50,7 +50,9 @@ impl MessageRow { let time = gtk::Label::builder() .label( - &NaiveDateTime::from_timestamp_opt(msg.time as i64, 0) + &Local + .timestamp_opt(msg.time as i64, 0) + .earliest() .map(|time| time.format("%Y-%m-%d %H:%M:%S").to_string()) .unwrap_or_default(), ) From 383123cd82084537a1d4eb6889a1658de22751d2 Mon Sep 17 00:00:00 2001 From: Julian Schmidhuber Date: Wed, 7 Jan 2026 16:01:32 +0100 Subject: [PATCH 2/3] Switch to row activation instead of selection for displaying selected subscription Fixes #35. --- src/widgets/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/window.rs b/src/widgets/window.rs index dfa50c2..0a07487 100644 --- a/src/widgets/window.rs +++ b/src/widgets/window.rs @@ -316,7 +316,7 @@ impl NotifyWindow { }); let this = self.clone(); - imp.subscription_list.connect_row_selected(move |_, _row| { + imp.subscription_list.connect_row_activated(move |_, _row| { this.selected_subscription_changed(this.selected_subscription().as_ref()); }); From 7f0deab0a9f5751bb71c87df7a86c95a07687cdc Mon Sep 17 00:00:00 2001 From: Julian Schmidhuber Date: Fri, 9 Jan 2026 16:16:56 +0100 Subject: [PATCH 3/3] Fix application not being mobile compatible in Phosh --- data/com.ranfdev.Notify.desktop.in.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/com.ranfdev.Notify.desktop.in.in b/data/com.ranfdev.Notify.desktop.in.in index 3b53721..2256589 100644 --- a/data/com.ranfdev.Notify.desktop.in.in +++ b/data/com.ranfdev.Notify.desktop.in.in @@ -11,4 +11,4 @@ Keywords=Gnome;GTK;ntfy; Icon=@icon@ StartupNotify=true X-GNOME-UsesNotifications=true -X-Purism-FormFactor=Workstation;Mobile +X-Purism-FormFactor=Workstation;Mobile;