From 749e10916587506f7fad443b4ec9c14285f17663 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Wed, 27 Sep 2023 15:35:40 -0400 Subject: [PATCH] The auto-updating DateStyle has second-granularity for durations <1hr --- Widgets/Recents.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Widgets/Recents.swift b/Widgets/Recents.swift index 793f6d4..4b45c55 100644 --- a/Widgets/Recents.swift +++ b/Widgets/Recents.swift @@ -168,7 +168,7 @@ struct ItemListEntryView: View { .foregroundColor(.red) Spacer() if let published = item.published { - Text(published, style: .relative) + Text(published, format: .relative(presentation: .numeric, unitsStyle: .narrow)) .font(.caption.width(.condensed)) .multilineTextAlignment(.trailing) .layoutPriority(-1)