From 2b4ba189c7e35ad6f4bd7476bf93fd21987b43b8 Mon Sep 17 00:00:00 2001 From: navodzoysa Date: Wed, 21 Jul 2021 21:34:42 +0530 Subject: [PATCH] Fix date range shown in reverse in MDM Reports (cherry picked from commit 5d23d1d6f651dc6b41b0d7b6364fdef4fec4f4aa) --- .../device/mgt/core/report/mgt/ReportManagementServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/report/mgt/ReportManagementServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/report/mgt/ReportManagementServiceImpl.java index 533b1cb1bc..7d2ff24875 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/report/mgt/ReportManagementServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/report/mgt/ReportManagementServiceImpl.java @@ -315,7 +315,7 @@ public class ReportManagementServiceImpl implements ReportManagementService { } //Map date blocks and counts resultObject.addProperty( - dateFormat.format(endDate) + " - " + dateFormat.format(previousDate), sum); + dateFormat.format(previousDate) + " - " + dateFormat.format(endDate), sum); endDate = previousDate; }