diff --git a/app/components/container/container.html b/app/components/container/container.html
index bc76f31cc..52e203069 100644
--- a/app/components/container/container.html
+++ b/app/components/container/container.html
@@ -84,7 +84,7 @@
Created |
- {{ container.Created | date: 'medium' }} |
+ {{ container.Created|getisodate }} |
Path |
@@ -186,7 +186,8 @@
{{key}} |
- {{ val }} |
+ {{val|getisodate}} |
+ {{val}} |
diff --git a/app/components/events/events.html b/app/components/events/events.html
index 17764e1fb..f68971578 100644
--- a/app/components/events/events.html
+++ b/app/components/events/events.html
@@ -50,7 +50,7 @@
- {{ event.Time|getdatefromtimestamp }} |
+ {{ event.Time|getisodatefromtimestamp }} |
{{ event.Type }} |
{{ event.Details }} |
diff --git a/app/shared/filters.js b/app/shared/filters.js
index c668b109f..a0afbcb41 100644
--- a/app/shared/filters.js
+++ b/app/shared/filters.js
@@ -154,15 +154,7 @@ angular.module('uifordocker.filters', [])
return [];
};
})
-.filter('getdate', function () {
- 'use strict';
- return function (data) {
- //Multiply by 1000 for the unix format
- var date = new Date(data * 1000);
- return date.toDateString();
- };
-})
-.filter('getdatefromtimestamp', function () {
+.filter('getisodatefromtimestamp', function () {
'use strict';
return function (timestamp) {
return moment.unix(timestamp).format('YYYY-MM-DD HH:mm:ss');
diff --git a/test/unit/app/shared/filters.spec.js b/test/unit/app/shared/filters.spec.js
index db832cd8f..b9235f38b 100644
--- a/test/unit/app/shared/filters.spec.js
+++ b/test/unit/app/shared/filters.spec.js
@@ -134,12 +134,6 @@ 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');
- }));
- });
-
describe('errorMsgFilter', function () {
it('should convert the $resource object to a string message',
inject(function (errorMsgFilter) {