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
AI Traffic: trend chart shows the wrong day in negative-UTC timezones; tooltip prints raw ISO dates #605
The AI Traffic trend chart buckets visits by UTC day on the server, but the X-axis formatter parses the "YYYY-MM-DD" bucket key with new Date(v) — which is UTC midnight — and renders it in the browser's local timezone. In any negative-UTC-offset timezone (all of the Americas), every label shifts one day back: the Aug 1 bucket displays as "Jul 31".
Two smaller issues in the same spot: the custom tooltip doesn't format the label at all (it prints the raw 2026-08-01 next to an axis that says "Aug 1"), and the formatter hardcodes the 'en' locale while sibling pages pass undefined to use the viewer's locale.
Format the bucket key with timeZone: 'UTC' so the label names the bucket's own day, e.g. d.toLocaleDateString(undefined, { month: 'short', day: 'numeric', timeZone: 'UTC' }), extract that into a small helper, and reuse it for the tooltip label.
Acceptance criteria
In a US timezone, a visit bucketed under Aug 1 appears under an "Aug 1" tick.
The tooltip shows the same formatted date as the axis, not a raw ISO string.
Activity
BharadwajKanneveti commentedon Aug 3, 2026
Hi @gkhngyk I will work on this issue