Skip to content

Commit 628a608

Browse files
tykealCopilot
andcommitted
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

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ custom_components/*/__pycache__/
99
venv
1010
*.pyc
1111
.coverage
12-
coverage.xml
12+
coverage.*
1313
.tox
1414
ha-core/
1515

@@ -23,3 +23,4 @@ package-lock.json
2323
.cursor/
2424
.aider*
2525
.continue/
26+
coverage/

0 commit comments

Comments
 (0)