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:
parent
22122a27b5
commit
0e8fff7a51
5 changed files with 6 additions and 19 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue