From cbbb86caf5f159c2bd0def8ff3c36b582685bd57 Mon Sep 17 00:00:00 2001 From: Nabil Adouani Date: Tue, 3 Jan 2017 13:36:17 +0100 Subject: [PATCH] #67 Fix a UI regression introduced by the migration of date fields in the database --- ui/app/scripts/directives/flow/flow-item.js | 4 ++-- ui/app/views/directives/flow/operation.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/app/scripts/directives/flow/flow-item.js b/ui/app/scripts/directives/flow/flow-item.js index a08382c125..7f9d375bc2 100644 --- a/ui/app/scripts/directives/flow/flow-item.js +++ b/ui/app/scripts/directives/flow/flow-item.js @@ -19,8 +19,8 @@ scope.getContentUrl = function() { return 'views/directives/flow/' + scope.type + '.html'; }; - scope.gtime = function(startdate) { - return moment(startdate, 'YYYYMMDDTHHmmssZZ').toDate().getTime(); + scope.gtime = function(startdate) { + return moment(startdate).toDate().getTime(); }; scope.isImage = function(contentType) { return angular.isString(contentType) && contentType.indexOf('image') === 0; diff --git a/ui/app/views/directives/flow/operation.html b/ui/app/views/directives/flow/operation.html index de03120e39..5fad899066 100644 --- a/ui/app/views/directives/flow/operation.html +++ b/ui/app/views/directives/flow/operation.html @@ -14,7 +14,7 @@ {{getUserInfo.get(base.user) | getField: 'name'}} - + {{millis | amDurationFormat : 'milliseconds'}}