We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b190a2c commit a2abe34Copy full SHA for a2abe34
openmrs/apps/customDisplayControl/js/customControl.js
@@ -29,10 +29,10 @@ angular.module('bahmni.common.displaycontrol.custom')
29
});
30
};
31
32
- var transformDate = function (dateTime) {
33
- return Bahmni.Common.Util.DateUtil.formatDateWithoutTimeToLocal(
34
- dateTime,
35
- )
+ var transformDate = function (dateTimeArray) {
+ var dateTime = dateTimeArray.slice();
+ dateTime[1] = dateTime[1] - 1
+ return Bahmni.Common.Util.DateUtil.formatDateWithoutTimeToLocal(dateTime)
36
}
37
38
var transformTime = function (dateTime) {
0 commit comments