From c164e073365a161b482f65f52de947ae7e941c40 Mon Sep 17 00:00:00 2001 From: eccgecko <36884529+eccgecko@users.noreply.github.com> Date: Fri, 10 Apr 2026 22:50:26 +0100 Subject: [PATCH] fix: show 'Never' for Go zero-time expiry on detail page The 'Key expiry' attribute only checked node.expiry !== null, showing a garbled date for the '0001-01-01T00:00:00Z' zero-time that headscale may return for tagged nodes (juanfont/headscale#3170). --- app/routes/machines/machine.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes/machines/machine.tsx b/app/routes/machines/machine.tsx index 3df43ac..3b6dd9e 100644 --- a/app/routes/machines/machine.tsx +++ b/app/routes/machines/machine.tsx @@ -12,7 +12,7 @@ import Tooltip from "~/components/tooltip"; import { nodesResource, usersResource } from "~/server/headscale/live-store"; import cn from "~/utils/cn"; import { getOSInfo, getTSVersion } from "~/utils/host-info"; -import { mapNodes, sortNodeTags } from "~/utils/node-info"; +import { isNoExpiry, mapNodes, sortNodeTags } from "~/utils/node-info"; import { getUserDisplayName } from "~/utils/user"; import type { Route } from "./+types/machine"; @@ -281,7 +281,7 @@ export default function Page({ /> {magic ? (