From 2dd1b0417a44e4fdcc3619043fa4cd8ed0c726cf Mon Sep 17 00:00:00 2001 From: Kirill Kuznetsov Date: Mon, 23 Oct 2023 23:25:07 +0300 Subject: [PATCH] Add date formatting to custom api --- src/widgets/customapi/component.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/widgets/customapi/component.jsx b/src/widgets/customapi/component.jsx index 48152a9e..195e1bbf 100644 --- a/src/widgets/customapi/component.jsx +++ b/src/widgets/customapi/component.jsx @@ -69,6 +69,9 @@ function formatValue(t, mapping, rawValue) { case "bitrate": value = t("common.bitrate", { value }); break; + case "date": + value = t("common.date", { value, dateStyle: "long" }); + break; case "text": default: // nothing