Commit 628a608
fix: use formatToParts for locale-safe date formatting
Use Intl.DateTimeFormat.formatToParts() to extract locale-formatted
year/month/day values before reordering, ensuring non-Latin numeral
systems are handled correctly when date_format is overridden.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Andrew Grimberg <tykeal@bardicgrove.org>1 parent a3edeb6 commit 628a608
4 files changed
Lines changed: 95 additions & 10 deletions
File tree
- custom_components/keymaster/www/generated
- lovelace_strategy
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
0 commit comments