mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-11-09 08:26:16 +00:00
fix(frontend): Use Date.now() instead of new Date()
This commit is contained in:
@@ -213,7 +213,7 @@ const HostDetail = () => {
|
||||
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 (
|
||||
<div className="h-screen flex flex-col">
|
||||
|
||||
Reference in New Issue
Block a user