Display history date/time using local timezone

This commit is contained in:
chinkung 2018-04-17 13:28:54 +07:00 committed by GitHub
parent d466a5dd3e
commit 34d8e7392c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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({