From 34d8e7392c52260e5b6b29d5a6378c50a68f87f3 Mon Sep 17 00:00:00 2001 From: chinkung <2522806+chinkung@users.noreply.github.com> Date: Tue, 17 Apr 2018 13:28:54 +0700 Subject: [PATCH] Display history date/time using local timezone --- app/templates/dashboard.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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({