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:
parent
96edfb4444
commit
91b876310e
3 changed files with 9 additions and 1 deletions
|
|
@ -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<Quote[]>([]);
|
||||
const [loading, setLoading] = useState(true);
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
|
|
@ -108,6 +110,7 @@ export default function QuotesPage() {
|
|||
year: 'numeric',
|
||||
month: 'short',
|
||||
day: 'numeric',
|
||||
timeZone: tz,
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue