Skip to content

Open-source agentic AI Search Execution Platform. Track AI visibility, find opportunities, and let agents turn signals into prioritized actions and drafted fixes across ChatGPT, Claude, Gemini, Google AI Overviews, Google AI Mode, Perplexity, Grok, and Microsoft Copilot.

fix: group audit trend points by local date (#675)

Bharadwajjjjj9eecf58f8b00
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/audit/page.tsx b/web/src/app/[locale]/(dashboard)/dashboard/audit/page.tsx
index de2c2596a..c722cccd0 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/audit/page.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/audit/page.tsx
@@ -121,7 +121,14 @@ export default function SiteAuditPage() {
const dailyPoints = useMemo(() => {
const byDay = new Map<string, (typeof rangePoints)[number]>();
for (const p of rangePoints) {
- byDay.set(new Date(p.createdAt).toISOString().slice(0, 10), p);
+ const date = new Date(p.createdAt);
+ const localDay = [
+ date.getFullYear(),
+ String(date.getMonth() + 1).padStart(2, '0'),
+ String(date.getDate()).padStart(2, '0'),
+ ].join('-');
+
+ byDay.set(localDay, p);
}
return [...byDay.values()];
}, [rangePoints]);