Skip to content

Commit a2abe34

Browse files
committed
[Rahul] | BAH-3522 | Fix. Appointments Month Incorrect Indexing
1 parent b190a2c commit a2abe34

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

openmrs/apps/customDisplayControl/js/customControl.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ angular.module('bahmni.common.displaycontrol.custom')
2929
});
3030
};
3131

32-
var transformDate = function (dateTime) {
33-
return Bahmni.Common.Util.DateUtil.formatDateWithoutTimeToLocal(
34-
dateTime,
35-
)
32+
var transformDate = function (dateTimeArray) {
33+
var dateTime = dateTimeArray.slice();
34+
dateTime[1] = dateTime[1] - 1
35+
return Bahmni.Common.Util.DateUtil.formatDateWithoutTimeToLocal(dateTime)
3636
}
3737

3838
var transformTime = function (dateTime) {

0 commit comments

Comments
 (0)