feat(07.1-05): user-tz on dashboard, quotes, veeam-analysis

- dashboard/page.tsx: thread tz into PageHeader description's
  toLocaleDateString call.
- quotes/page.tsx: thread tz into formatDate arrow helper inside the
  default export.
- veeam-analysis/page.tsx: thread tz into the summary footer's
  generated-at toLocaleString call.

Migrates 3 of 81 audit leak callsites.
This commit is contained in:
lorentz 2026-05-07 08:36:09 -04:00
parent 96edfb4444
commit 91b876310e
3 changed files with 9 additions and 1 deletions

View file

@ -33,6 +33,7 @@ import {
TrendingUp,
Timer,
} from 'lucide-react';
import { useUserTimezone } from '@/lib/hooks/use-user-timezone';
interface Overview {
today: {
@ -105,6 +106,7 @@ function relTime(iso: string | null): string {
}
export default function DashboardPage() {
const tz = useUserTimezone();
const [data, setData] = useState<Overview | null>(null);
const [trends, setTrends] = useState<Trends | null>(null);
const [error, setError] = useState<string | null>(null);
@ -154,6 +156,7 @@ export default function DashboardPage() {
year: 'numeric',
month: 'long',
day: 'numeric',
timeZone: tz,
})}
accent
watermark