Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominic Guss2018-09-06 15:52:10 +0000
committerDominic Guss2018-09-10 18:49:31 +0000
commitc996a252d8395b4de587410ecd0f3be47d499a80 (patch)
tree6f30a72ff57a34eff4257b869c9512b53b4a5d59 /plugins/org.eclipse.osee.web.ui
parenta85f0d3f73bad6ccb520d95a8392ebc8accb0feb (diff)
downloadorg.eclipse.osee-c996a252d8395b4de587410ecd0f3be47d499a80.tar.gz
org.eclipse.osee-c996a252d8395b4de587410ecd0f3be47d499a80.tar.xz
org.eclipse.osee-c996a252d8395b4de587410ecd0f3be47d499a80.zip
bug[ats_TW10431]: bug[ats_TW10431]: Fix data type of Dispo set date
Change-Id: Ie0a4f4b1ec1b55a228f24ed09b4fa59ab33643ca Signed-off-by: Dominic Guss <Dominic.Guss@boeing.com>
Diffstat (limited to 'plugins/org.eclipse.osee.web.ui')
-rw-r--r--plugins/org.eclipse.osee.web.ui/src/dispo/js/adminController.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.web.ui/src/dispo/js/adminController.js b/plugins/org.eclipse.osee.web.ui/src/dispo/js/adminController.js
index 8b9fb042e6..8745546895 100644
--- a/plugins/org.eclipse.osee.web.ui/src/dispo/js/adminController.js
+++ b/plugins/org.eclipse.osee.web.ui/src/dispo/js/adminController.js
@@ -1,7 +1,8 @@
app.controller('adminController', [
'$scope',
'$rootScope',
- '$modal',
+ '$modal',
+ '$filter',
'Program',
'Set',
'Report',
@@ -10,7 +11,7 @@ app.controller('adminController', [
'MultiItemEdit',
'Config',
'uiGridConstants',
- function($scope, $rootScope, $modal, Program, Set, Report, CopySet, CopySetCoverage, MultiItemEdit, Config, uiGridConstants) {
+ function($scope, $rootScope, $modal, $filter, Program, Set, Report, CopySet, CopySetCoverage, MultiItemEdit, Config, uiGridConstants) {
$scope.readOnly = true;
$scope.programSelection = null;
$scope.modalShown = false;
@@ -326,6 +327,7 @@ app.controller('adminController', [
newSet.$save({
programId: $scope.programSelection
}, function(data) {
+ data.time = formatDate(data.time);
$scope.sets.push(data);
});
}
@@ -817,5 +819,9 @@ app.controller('adminController', [
$modalInstance.dismiss('cancel');
};
}
+
+ var formatDate = function(time) {
+ return $filter('date')(new Date(time), 'EEE MMM dd HH:mm:ss UTC yyyy');
+ }
}
- ]); \ No newline at end of file
+ ]);

Back to the top