Display history date/time using local timezone

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

View file

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