Skip to content

Commit

Permalink
Display history date/time using local timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
chinkung authored Apr 17, 2018
1 parent d466a5d commit 34d8e73
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/templates/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,15 @@ <h3 class="box-title">Hosted Domains</h3>
"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({
Expand Down

0 comments on commit 34d8e73

Please sign in to comment.