diff --git a/changes/issue-6467-fix-last-restarted-report-date b/changes/issue-6467-fix-last-restarted-report-date new file mode 100644 index 0000000000..a2e1003209 --- /dev/null +++ b/changes/issue-6467-fix-last-restarted-report-date @@ -0,0 +1 @@ +* Fix last restarted report date to be the sum of last updated at date and uptime diff --git a/frontend/pages/hosts/details/DeviceUserPage/DeviceUserPage.tsx b/frontend/pages/hosts/details/DeviceUserPage/DeviceUserPage.tsx index 005f6ab36f..febc070086 100644 --- a/frontend/pages/hosts/details/DeviceUserPage/DeviceUserPage.tsx +++ b/frontend/pages/hosts/details/DeviceUserPage/DeviceUserPage.tsx @@ -179,6 +179,7 @@ const DeviceUserPage = ({ "primary_ip", "public_ip", "batteries", + "detail_updated_at", ]) ); diff --git a/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx b/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx index da4058a6a1..7ebd333831 100644 --- a/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx +++ b/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx @@ -343,6 +343,7 @@ const HostDetailsPage = ({ "public_ip", "geolocation", "batteries", + "detail_updated_at", ]) ); diff --git a/frontend/pages/hosts/details/cards/About/About.tsx b/frontend/pages/hosts/details/cards/About/About.tsx index 67b93e76d8..02bdce1b77 100644 --- a/frontend/pages/hosts/details/cards/About/About.tsx +++ b/frontend/pages/hosts/details/cards/About/About.tsx @@ -3,7 +3,7 @@ import React from "react"; import ReactTooltip from "react-tooltip"; import { IMDMData, IMunkiData, IDeviceUser } from "interfaces/host"; -import { humanHostUptime, humanHostEnrolled } from "utilities/helpers"; +import { humanHostLastRestart, humanHostEnrolled } from "utilities/helpers"; interface IAboutProps { aboutData: { [key: string]: any }; @@ -159,7 +159,10 @@ const About = ({