diff --git a/ui/app/scripts/controllers/case/CaseListCtrl.js b/ui/app/scripts/controllers/case/CaseListCtrl.js index 4fe6427ba5..a98bc152ce 100644 --- a/ui/app/scripts/controllers/case/CaseListCtrl.js +++ b/ui/app/scripts/controllers/case/CaseListCtrl.js @@ -89,7 +89,7 @@ }); } } else if (filterDef.type === 'date') { - date = moment(value, ['YYYYMMDDTHHmmZZ', 'DD-MM-YYYY HH:mm']); + date = moment(value); this.uiSrv.activeFilters[field] = { value: { from: date.hour(0).minutes(0).seconds(0).toDate(), @@ -107,7 +107,7 @@ }] }; } else if (filterDef.type === 'date') { - date = moment(value, ['YYYYMMDDTHHmmZZ', 'DD-MM-YYYY HH:mm']); + date = moment(value); this.uiSrv.activeFilters[field] = { value: { from: date.hour(0).minutes(0).seconds(0).toDate(), diff --git a/ui/app/scripts/controllers/case/CaseObservablesCtrl.js b/ui/app/scripts/controllers/case/CaseObservablesCtrl.js index 4d4d99ff92..f9ae34e74e 100644 --- a/ui/app/scripts/controllers/case/CaseObservablesCtrl.js +++ b/ui/app/scripts/controllers/case/CaseObservablesCtrl.js @@ -94,7 +94,7 @@ }); } } else if (filterDef.type === 'date') { - date = moment(value, ['YYYYMMDDTHHmmZZ', 'DD-MM-YYYY HH:mm']); + date = moment(value); $scope.uiSrv.activeFilters[field] = { value: { from: date.hour(0).minutes(0).seconds(0).toDate(), @@ -112,7 +112,7 @@ }] }; } else if (filterDef.type === 'date') { - date = moment(value, ['YYYYMMDDTHHmmZZ', 'DD-MM-YYYY HH:mm']); + date = moment(value); $scope.uiSrv.activeFilters[field] = { value: { from: date.hour(0).minutes(0).seconds(0).toDate(), diff --git a/ui/app/views/partials/case/case.list.html b/ui/app/views/partials/case/case.list.html index ad5251cc35..78ce4a2b50 100644 --- a/ui/app/views/partials/case/case.list.html +++ b/ui/app/views/partials/case/case.list.html @@ -95,7 +95,11 @@