From d50381d45ce02fed457adf5f85e0c8f6c358efe8 Mon Sep 17 00:00:00 2001 From: Mohamed Aziz Ben Aissa Date: Thu, 9 Nov 2023 21:17:19 +0100 Subject: [PATCH] Add timeStyle option to custom API date format --- 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 a9e0890d..fcf6e82f 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: mapping?.dateStyle ?? "long" }); + value = t("common.date", { value, dateStyle: mapping?.dateStyle ?? "long", timeStyle: mapping?.timeStyle }); break; case "text": default: