diff --git a/app/dashboard/page.tsx b/app/dashboard/page.tsx index c811076..39b2a39 100644 --- a/app/dashboard/page.tsx +++ b/app/dashboard/page.tsx @@ -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(null); const [trends, setTrends] = useState(null); const [error, setError] = useState(null); @@ -154,6 +156,7 @@ export default function DashboardPage() { year: 'numeric', month: 'long', day: 'numeric', + timeZone: tz, })} accent watermark diff --git a/app/quotes/page.tsx b/app/quotes/page.tsx index b278f4f..a136d43 100644 --- a/app/quotes/page.tsx +++ b/app/quotes/page.tsx @@ -23,6 +23,7 @@ import { TableHeader, TableRow, } from '@/components/ui/table'; +import { useUserTimezone } from '@/lib/hooks/use-user-timezone'; import { TicketDetailModal } from '@/components/quotes/ticket-detail-modal'; interface Quote { @@ -49,6 +50,7 @@ interface Quote { } export default function QuotesPage() { + const tz = useUserTimezone(); const [quotes, setQuotes] = useState([]); const [loading, setLoading] = useState(true); const [error, setError] = useState(null); @@ -108,6 +110,7 @@ export default function QuotesPage() { year: 'numeric', month: 'short', day: 'numeric', + timeZone: tz, }); }; diff --git a/app/veeam-analysis/page.tsx b/app/veeam-analysis/page.tsx index b331f46..dadd3d6 100644 --- a/app/veeam-analysis/page.tsx +++ b/app/veeam-analysis/page.tsx @@ -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(null); const [status, setStatus] = useState(null); const [loading, setLoading] = useState(true); @@ -668,7 +670,7 @@ export default function VeeamAnalysisPage() {

- Generated by {summary.model} · {new Date(summary.generated_at).toLocaleString()} + Generated by {summary.model} · {new Date(summary.generated_at).toLocaleString(undefined, { timeZone: tz })}

)}