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

@ -14,6 +14,7 @@ import {
Brain, Play, RefreshCw, CheckCircle2, AlertTriangle, Clock,
WifiOff, ChevronDown, ChevronRight, Wrench, RotateCcw, Sparkles, Zap, BookOpen, GraduationCap,
} from 'lucide-react';
import { useUserTimezone } from '@/lib/hooks/use-user-timezone';
// ── Types ─────────────────────────────────────────────────────────────────────
@ -260,6 +261,7 @@ function renderTicketSubRow(t: TicketRow) {
// ── Page ──────────────────────────────────────────────────────────────────────
export default function VeeamAnalysisPage() {
const tz = useUserTimezone();
const [data, setData] = useState<AnalysisData | null>(null);
const [status, setStatus] = useState<RunStatus | null>(null);
const [loading, setLoading] = useState(true);
@ -668,7 +670,7 @@ export default function VeeamAnalysisPage() {
</div>
<p className="text-[10px] text-muted-foreground">
Generated by {summary.model} · {new Date(summary.generated_at).toLocaleString()}
Generated by {summary.model} · {new Date(summary.generated_at).toLocaleString(undefined, { timeZone: tz })}
</p>
</CardContent>
)}