From 9e61d792b7ce701d2d3f3262a7f5bda9ebdcd3b4 Mon Sep 17 00:00:00 2001 From: Adam Harvey <33203301+adamdmharvey@users.noreply.github.com> Date: Thu, 28 Mar 2024 10:51:53 -0400 Subject: [PATCH] feat(home): Show relative times for recent visits from today Signed-off-by: Adam Harvey <33203301+adamdmharvey@users.noreply.github.com> --- plugins/home/src/components/VisitList/ItemDetail.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/home/src/components/VisitList/ItemDetail.tsx b/plugins/home/src/components/VisitList/ItemDetail.tsx index fed8c5549c..832803800c 100644 --- a/plugins/home/src/components/VisitList/ItemDetail.tsx +++ b/plugins/home/src/components/VisitList/ItemDetail.tsx @@ -35,9 +35,7 @@ const ItemDetailTimeAgo = ({ visit }: { visit: Visit }) => { color="textSecondary" dateTime={visitDate.toISO() ?? undefined} > - {visitDate >= DateTime.now().startOf('day') - ? visitDate.toFormat('HH:mm') - : visitDate.toRelative()} + {visitDate.toRelative()} ); };