diff --git a/Duplicati/Server/webroot/ngax/scripts/controllers/HomeController.js b/Duplicati/Server/webroot/ngax/scripts/controllers/HomeController.js index 12c40e917..1a5a26dc5 100644 --- a/Duplicati/Server/webroot/ngax/scripts/controllers/HomeController.js +++ b/Duplicati/Server/webroot/ngax/scripts/controllers/HomeController.js @@ -45,6 +45,9 @@ backupApp.controller('HomeController', function ($scope, $location, BackupList, }; $scope.formatDuration = function(duration) { - return duration.substring(0, duration.length - duration.indexOf(".")); + if (duration != null && duration.indexOf(".") > 0) + return duration.substring(0, duration.length - duration.indexOf(".")); + else + return duration; }; }); \ No newline at end of file