diff --git a/app/templates/admin_history.html b/app/templates/admin_history.html index 6ce9469..32abb7d 100644 --- a/app/templates/admin_history.html +++ b/app/templates/admin_history.html @@ -68,7 +68,15 @@ "searching" : true, "ordering" : true, "info" : true, - "autoWidth" : false + "autoWidth" : false, + "columnDefs": [ + { + "render": function ( data, type, row ) { + return moment.utc(data).local().format('YYYY-MM-DD HH:mm:ss'); + }, + "targets": 2 + } + ] }); $(document.body).on('click', '.history-info-button', function() { var modal = $("#modal_history_info"); diff --git a/app/templates/base.html b/app/templates/base.html index 351598e..1ba7b56 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -188,6 +188,8 @@ + + diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index 7258e02..0f806df 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -162,7 +162,15 @@ "searching" : false, "ordering" : false, "info" : false, - "autoWidth" : false + "autoWidth" : false, + "columnDefs": [ + { + "render": function ( data, type, row ) { + return moment.utc(data).local().format('YYYY-MM-DD HH:mm:ss'); + }, + "targets": 2 + } + ] }); // set up domain list $("#tbl_domain_list").DataTable({