diff --git a/Duplicati/Server/webroot/ngax/scripts/controllers/HomeController.js b/Duplicati/Server/webroot/ngax/scripts/controllers/HomeController.js index e69cf6256..12c40e917 100644 --- a/Duplicati/Server/webroot/ngax/scripts/controllers/HomeController.js +++ b/Duplicati/Server/webroot/ngax/scripts/controllers/HomeController.js @@ -44,4 +44,7 @@ backupApp.controller('HomeController', function ($scope, $location, BackupList, AppService.post('/backup/' + id + '/createreport'); }; + $scope.formatDuration = function(duration) { + return duration.substring(0, duration.length - duration.indexOf(".")); + }; }); \ No newline at end of file diff --git a/Duplicati/Server/webroot/ngax/templates/home.html b/Duplicati/Server/webroot/ngax/templates/home.html index f104bc1de..6fb1dd9b7 100644 --- a/Duplicati/Server/webroot/ngax/templates/home.html +++ b/Duplicati/Server/webroot/ngax/templates/home.html @@ -69,7 +69,7 @@