fix: standardize frontend date formatting with shared utility (Closes #175) #186

Merged
shahondin1624 merged 1 commits from feature/issue-175-date-formatting-utility-v2 into main 2026-04-10 18:45:25 +02:00
Owner

Summary

  • Extracted all inline formatDate, formatDateTime, and timestamp formatting functions from 8 Vue components into a shared src/utils/dateFormat.js utility module
  • All views (AuditLog, FeeOverview, InjuryList, LagerDetail, LagerList, MemberList, QueryBuilder) and components (FileExplorer, FeeRuleEditor) now use the shared module
  • Ensures consistent German date formatting (dd.mm.yyyy) with explicit 2-digit options across the entire frontend

Test plan

  • Frontend builds without errors (npx webpack --node-env production)
  • All inline toLocaleDateString('de-DE') calls replaced except in the shared utility
  • No remaining function formatDate definitions in view/component files

Closes #175

## Summary - Extracted all inline `formatDate`, `formatDateTime`, and timestamp formatting functions from 8 Vue components into a shared `src/utils/dateFormat.js` utility module - All views (AuditLog, FeeOverview, InjuryList, LagerDetail, LagerList, MemberList, QueryBuilder) and components (FileExplorer, FeeRuleEditor) now use the shared module - Ensures consistent German date formatting (`dd.mm.yyyy`) with explicit `2-digit` options across the entire frontend ## Test plan - [x] Frontend builds without errors (`npx webpack --node-env production`) - [x] All inline `toLocaleDateString('de-DE')` calls replaced except in the shared utility - [x] No remaining `function formatDate` definitions in view/component files Closes #175
shahondin1624 added 1 commit 2026-04-10 18:45:20 +02:00
Extract all inline date formatting functions into src/utils/dateFormat.js
providing formatDate, formatDateTime, and formatTimestamp utilities.
All views and components now use the shared module instead of duplicating
toLocaleDateString('de-DE') calls with varying options.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
shahondin1624 merged commit af006d7250 into main 2026-04-10 18:45:25 +02:00
shahondin1624 deleted branch feature/issue-175-date-formatting-utility-v2 2026-04-10 18:45:25 +02:00
Sign in to join this conversation.