diff --git a/frontend/fleet/helpers.ts b/frontend/fleet/helpers.ts index 2b511d9b79..d4e521f897 100644 --- a/frontend/fleet/helpers.ts +++ b/frontend/fleet/helpers.ts @@ -571,7 +571,7 @@ export const humanHostLastSeen = (lastSeen: string): string => { }; export const humanHostEnrolled = (enrolled: string): string => { - return format(new Date(enrolled), "MMM d yyyy, HH:mm:ss"); + return formatDistanceToNow(new Date(enrolled), { addSuffix: true }); }; export const humanHostMemory = (bytes: number): string => { diff --git a/frontend/pages/hosts/HostDetailsPage/HostDetailsPage.tsx b/frontend/pages/hosts/HostDetailsPage/HostDetailsPage.tsx index 396fb7d792..8f2812dec2 100644 --- a/frontend/pages/hosts/HostDetailsPage/HostDetailsPage.tsx +++ b/frontend/pages/hosts/HostDetailsPage/HostDetailsPage.tsx @@ -1030,7 +1030,7 @@ const HostDetailsPage = ({ if (numUsers) { return (
About this host