pg driver returns PostgreSQL date as JS Date object. String(date).slice(0,10) produced "Mon Apr 07" instead of "2026-04-07", causing chart tooltips to default to year 2001 when parsed by new Date().
Next.js full-stack analytics dashboard for new-api. - Direct PostgreSQL readonly queries on logs table - 5 pages: Dashboard, Rankings, Aggregation, Logs, Detail - Dark/Light/System theme with CSS variables - Chinese/English i18n (default Chinese) - Recharts with dual Y-axis for input/output tokens - Lucide icons + Motion animations - Docker + docker-compose with external sinobridge network, port 8019