Commit f14c08d
authored
🤖 fix: use regional locale for build date display (#930)
Replace hardcoded US date format (MM/DD/YYYY) with
`toLocaleDateString()` to respect the user's regional settings.
## Changes
- Renamed `formatUSDate` → `formatLocalDate`
- Uses `toLocaleDateString(undefined, {...})` with `undefined` locale to
automatically use the user's system locale
- Maintains the same date components (year, month, day) but adapts
ordering and separators to regional conventions
**Examples:**
- US: 12/05/2025
- UK/EU: 05/12/2025
- Germany: 05.12.2025
- Japan: 2025/12/05
_Generated with `mux`_1 parent 4d1947a commit f14c08d
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | | - | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
0 commit comments