mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
parent
299713fd5e
commit
1990472970
@ -77,7 +77,7 @@ export const formatDateNumeric = (
|
|||||||
const month = parts.find((value) => value.type === "month")?.value;
|
const month = parts.find((value) => value.type === "month")?.value;
|
||||||
const year = parts.find((value) => value.type === "year")?.value;
|
const year = parts.find((value) => value.type === "year")?.value;
|
||||||
|
|
||||||
const lastPart = parts.at(parts.length - 1);
|
const lastPart = parts[parts.length - 1];
|
||||||
let lastLiteral = lastPart?.type === "literal" ? lastPart?.value : "";
|
let lastLiteral = lastPart?.type === "literal" ? lastPart?.value : "";
|
||||||
|
|
||||||
if (locale.language === "bg" && locale.date_format === DateFormat.YMD) {
|
if (locale.language === "bg" && locale.date_format === DateFormat.YMD) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user