Phase 0.3: migrate date formatting to date-fns

This commit is contained in:
Agent Zero
2026-07-23 05:05:08 +02:00
parent 241850fddd
commit 57d18c1381
20 changed files with 133 additions and 56 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ import { useTranslation } from 'react-i18next';
import { StatCard } from '@/components/shared/StatCard';
import { ActivityFeed, ActivityItem } from '@/components/shared/ActivityFeed';
import { useUnifiedContacts, useAuditLog } from '@/api/hooks';
import { formatDateTime } from '@/utils/date';
export function DashboardPage() {
const { t } = useTranslation();
@@ -36,7 +37,7 @@ export function DashboardPage() {
id: `${entry.timestamp}-${entry.user}-${entry.action}`,
user: entry.user || 'System',
action: entry.action || '',
time: entry.timestamp ? new Date(entry.timestamp).toLocaleString('de-DE') : '',
time: entry.timestamp ? (formatDateTime(entry.timestamp) || '') : '',
avatarUrl: null,
}));