Problem
In History.tsx (line 10), toLocaleString() is called without a locale parameter. This produces different date formats depending on the user's browser locale, which can cause inconsistent display across users.
User impact: Users in different locales see different date formats, making the UI inconsistent.
Root Cause
The locale parameter was omitted during initial development.
What To Build
- Add explicit
'en-US' locale parameter to toLocaleString() calls
- Or create a
formatDate utility in src/lib/formatDate.ts for consistent date formatting across the app
Files To Touch
src/pages/History.tsx — line 10 add explicit locale
src/lib/formatDate.ts — new utility (optional)
Acceptance Criteria
Mandatory Checks
Problem
In History.tsx (line 10),
toLocaleString()is called without a locale parameter. This produces different date formats depending on the user's browser locale, which can cause inconsistent display across users.User impact: Users in different locales see different date formats, making the UI inconsistent.
Root Cause
The locale parameter was omitted during initial development.
What To Build
'en-US'locale parameter totoLocaleString()callsformatDateutility insrc/lib/formatDate.tsfor consistent date formatting across the appFiles To Touch
src/pages/History.tsx— line 10 add explicit localesrc/lib/formatDate.ts— new utility (optional)Acceptance Criteria
Mandatory Checks