Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/com.ranfdev.Notify.desktop.in.in
Original file line number Diff line number Diff line change
Expand Up @@ -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;
6 changes: 4 additions & 2 deletions src/widgets/message_row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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(),
)
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
});

Expand Down