bucket date

This commit is contained in:
Alex Holliday committed 2026-01-26 03:19:33 +00:00
1 parent 174665e70a
commit 11c95f885d
8 files changed
+24 -13

No files matched your search

@@ -28,7 +28,7 @@ export const MonitorStatBoxes = ({
const timeSinceLastFailure =
timeOfLastFailure > 0
? Date.now() - timeOfLastFailure
: Date.now() - new Date(monitorStats?.createdAt);
: Date.now() - new Date(monitorStats?.createdAt || 0).getTime();
// Determine time since last check
const timeOfLastCheck = monitorStats?.lastCheckTimestamp || 0;