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 (
- Device user + Used by {numUsers === 1 ? ( deviceMapping[0].email || "---" @@ -1223,7 +1223,7 @@ const HostDetailsPage = ({

About this host

- Created at + First enrolled {wrapFleetHelper( humanHostEnrolled, @@ -1232,16 +1232,7 @@ const HostDetailsPage = ({
- Updated at - - {wrapFleetHelper( - humanHostLastSeen, - titleData.detail_updated_at - )} - -
-
- Uptime + Last restarted {wrapFleetHelper(humanHostUptime, aboutData.uptime)}