From e43462d3058abec3f71fe8351f262262a155c64b Mon Sep 17 00:00:00 2001 From: Joy A Date: Tue, 29 Oct 2024 17:13:47 +0530 Subject: [PATCH] #1523 | Use numeric date/time formatting in applied filters view --- .../openchs-android/src/views/filter/AppliedFiltersV2.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/openchs-android/src/views/filter/AppliedFiltersV2.js b/packages/openchs-android/src/views/filter/AppliedFiltersV2.js index 2319b5692..2673e6d43 100644 --- a/packages/openchs-android/src/views/filter/AppliedFiltersV2.js +++ b/packages/openchs-android/src/views/filter/AppliedFiltersV2.js @@ -64,17 +64,17 @@ function getFiltersToDisplay(selectedFilterValues, filterUUIDsToIgnore, dashboar content={selectedFilterValue.map((x) => x.name).join(", ")}/>; case Concept.dataType.Date: return !_.isNil(selectedFilterValue) && + content={General.toNumericDateFormat(selectedFilterValue)}/> case Concept.dataType.DateTime: return !_.isNil(selectedFilterValue) && + content={General.toNumericDateTimeFormat(selectedFilterValue)}/> case Concept.dataType.Time: return !_.isNil(selectedFilterValue) && case Range.DateRange: return !_.isNil(selectedFilterValue) && !selectedFilterValue.isEmpty() && + content={`${General.toNumericDateFormat(selectedFilterValue.minValue)} - ${General.toNumericDateTimeFormat(selectedFilterValue.maxValue)}`}/> case DashboardFilterConfig.dataTypes.formMetaData: let labelTexts = []; if (selectedFilterValue.subjectTypes.length > 0) {