Use relative timestamps everywhere instead of raw date strings

This commit is contained in:
lashman
2026-02-28 01:52:56 +02:00
parent 5254de4a52
commit 7697983045
2 changed files with 4 additions and 16 deletions

View File

@@ -723,7 +723,7 @@ fn build_overview_tab(record: &AppImageRecord, db: &Rc<Database>) -> gtk::Box {
if let Some(ref last) = stats.last_launched {
let row = adw::ActionRow::builder()
.title("Last launched")
.subtitle(last)
.subtitle(&widgets::relative_time(last))
.build();
usage_group.add(&row);
}
@@ -853,13 +853,13 @@ fn build_overview_tab(record: &AppImageRecord, db: &Rc<Database>) -> gtk::Box {
let seen_row = adw::ActionRow::builder()
.title("First seen")
.subtitle(&record.first_seen)
.subtitle(&widgets::relative_time(&record.first_seen))
.build();
info_group.add(&seen_row);
let scanned_row = adw::ActionRow::builder()
.title("Last checked")
.subtitle(&record.last_scanned)
.subtitle(&widgets::relative_time(&record.last_scanned))
.build();
info_group.add(&scanned_row);