From d5c6ef494c018d16dd78acb2dde4a56e5f81f05c Mon Sep 17 00:00:00 2001 From: Kirill Kuznetsov Date: Mon, 23 Oct 2023 23:27:54 +0300 Subject: [PATCH] Add date style format from config --- src/widgets/customapi/component.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/customapi/component.jsx b/src/widgets/customapi/component.jsx index 195e1bbf..a9e0890d 100644 --- a/src/widgets/customapi/component.jsx +++ b/src/widgets/customapi/component.jsx @@ -70,7 +70,7 @@ function formatValue(t, mapping, rawValue) { value = t("common.bitrate", { value }); break; case "date": - value = t("common.date", { value, dateStyle: "long" }); + value = t("common.date", { value, dateStyle: mapping?.dateStyle ?? "long" }); break; case "text": default: