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 -2
View File
@@ -8,6 +8,7 @@ import { Input } from '@/components/ui/Input';
import { Button } from '@/components/ui/Button';
import { EmptyState } from '@/components/ui/EmptyState';
import { Badge } from '@/components/ui/Badge';
import { formatDateTime } from '@/utils/date';
export function AuditLogPage() {
const { t } = useTranslation();
@@ -41,8 +42,7 @@ export function AuditLogPage() {
cell: (info) => {
const val = info.getValue();
if (!val) return '—';
const date = new Date(val);
return date.toLocaleString('de-DE');
return formatDateTime(val) || '—';
},
},
{