You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Site Audit: trend chart groups by UTC day but labels by local day #668
The hub's trend chart de-duplicates audits to one point per day using new Date(p.createdAt).toISOString().slice(0, 10) — the UTC day — while the x-axis label uses toLocaleDateString(...) — the local day. In any non-UTC timezone the two calendars disagree around midnight. Example (UTC+3): audits run at 01:00 local on two consecutive local days can fall on the same or adjacent UTC days in ways that produce two points labeled with the same date — exactly the duplicate-label situation this grouping was written to prevent. latestPoint and the delta derive from the same map, so the "latest per day" pick can also be wrong at day boundaries.
Activity
BharadwajKanneveti commentedon Aug 7, 2026
@gkhngyk I will work on this issue