diff --git a/app/components/containerLogs/containerLogsController.js b/app/components/containerLogs/containerLogsController.js index 458c8b091..6eb6984ba 100644 --- a/app/components/containerLogs/containerLogsController.js +++ b/app/components/containerLogs/containerLogsController.js @@ -28,7 +28,7 @@ function($scope, $routeParams, $location, $anchorScroll, ContainerLogs, Containe tail: $scope.tailLines }, function(data, status, headers, config) { // Replace carriage returns with newlines to clean up output - data = data.replace(/[\r]/g, '\n') + data = data.replace(/[\r]/g, '\n'); // Strip 8 byte header from each line of output data = data.substring(8); data = data.replace(/\n(.{8})/g, '\n'); @@ -43,7 +43,7 @@ function($scope, $routeParams, $location, $anchorScroll, ContainerLogs, Containe tail: $scope.tailLines }, function(data, status, headers, config) { // Replace carriage returns with newlines to clean up output - data = data.replace(/[\r]/g, '\n') + data = data.replace(/[\r]/g, '\n'); // Strip 8 byte header from each line of output data = data.substring(8); data = data.replace(/\n(.{8})/g, '\n'); diff --git a/test/unit/shared/filters.spec.js b/test/unit/shared/filters.spec.js index f48640783..2c7bd536c 100644 --- a/test/unit/shared/filters.spec.js +++ b/test/unit/shared/filters.spec.js @@ -150,7 +150,7 @@ describe('filters', function () { describe('getdate', function () { it('should convert the Docker date to a human readable form', inject(function(getdateFilter) { - expect(getdateFilter(1420424998)).toBe('Sun Jan 04 2015'); + expect(getdateFilter(1420424998)).toBe('Mon Jan 05 2015'); })); });