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 b190a2c commit a2abe34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openmrs/apps/customDisplayControl/js/customControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ angular.module('bahmni.common.displaycontrol.custom')
});
};

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 a2abe34

Please sign in to comment.