fix(usage): respect server TZ for today filter and daily aggregation (#221)
The history endpoint parsed date parameters as UTC (using `T00:00:00.000Z`) and grouped daily breakdowns via `.toISOString()` (always UTC). For users outside UTC, this caused usage from the early hours of their local day to be excluded from the "today" filter, and daily chart labels to be off by one day during the UTC boundary overlap. Now uses the server's local timezone (set via `TZ` env var) for both date boundary calculation and daily aggregation key, so the dashboard respects the configured timezone.
S
Son L. Phan committed
a6454e950f83ada1f92e73037dff291eb67c8d49
Parent: 36d31bc
Committed by GitHub <noreply@github.com>
on 6/1/2026, 2:57:20 PM