Skip to content

Commit

Permalink
[Rahul] | BAH-3522 | Fix. Appointments Month Incorrect Indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
rahu1ramesh committed Mar 26, 2024
1 parent 4971424 commit 99ce06e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions openmrs/apps/customDisplayControl/js/customControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,11 @@ angular.module('bahmni.common.displaycontrol.custom')
withCredentials: true
});
};
var transformDate = function (dateTime) {
return Bahmni.Common.Util.DateUtil.formatDateWithoutTimeToLocal(
dateTime,
)

var transformDate = function (dateTimeArray) {
var dateTime = dateTimeArray.slice();
dateTime[1] = dateTime[1] - 1
return Bahmni.Common.Util.DateUtil.formatDateWithoutTimeToLocal(dateTime)
}

var transformTime = function (dateTime) {
Expand Down

0 comments on commit 99ce06e

Please sign in to comment.