This is an automated email from the ASF dual-hosted git repository. heneveld pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git
commit d41dc8de64181a64f1b9e71d8ea9e4c8afa77cc1 Author: Alex Heneveld <[email protected]> AuthorDate: Tue Oct 4 12:10:19 2022 +0100 fix dangling usage of imprecise moment --- ui-modules/home/app/views/about/about.controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-modules/home/app/views/about/about.controller.js b/ui-modules/home/app/views/about/about.controller.js index 6b675e75..727da541 100644 --- a/ui-modules/home/app/views/about/about.controller.js +++ b/ui-modules/home/app/views/about/about.controller.js @@ -18,7 +18,7 @@ */ import angular from 'angular'; -import moment from "moment"; +import { fromNow } from "brooklyn-ui-utils/utils/momentp"; import { get } from 'lodash'; import uiRouter from 'angular-ui-router'; import uibModal from 'angular-ui-bootstrap/src/modal/index-nocss'; @@ -252,7 +252,7 @@ export function aboutStateController($scope, $rootScope, $element, $q, $uibModal export function timeAgoFilter() { return function (input) { if (input) { - return moment(input).fromNow(); + return fromNow(input); } } }
