1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 13:55:21 +02:00

feat(ui): format all dates to use ISO8601 (#117)

This commit is contained in:
Anthony Lapenna 2016-08-10 16:05:28 +12:00 committed by GitHub
parent 22122a27b5
commit 0e8fff7a51
5 changed files with 6 additions and 19 deletions

View file

@ -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');