fix(frontend): Use Date.now() instead of new Date()

This commit is contained in:
tigattack
2025-09-25 01:03:06 +01:00
parent 6357839619
commit 0414ea39d0

View File

@@ -213,7 +213,7 @@ const HostDetail = () => {
return "Up to Date"; return "Up to Date";
}; };
const isStale = new Date() - new Date(host.last_update) > 24 * 60 * 60 * 1000; const isStale = Date.now() - new Date(host.last_update) > 24 * 60 * 60 * 1000;
return ( return (
<div className="h-screen flex flex-col"> <div className="h-screen flex flex-col">