From 8beb98757390a6f4e880289ac4b18b6c0b58bc02 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 11 Sep 2021 16:09:46 +0530 Subject: [PATCH] webapp dhcp.js: using moment to format date time. --- DnsServerCore/www/js/dhcp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DnsServerCore/www/js/dhcp.js b/DnsServerCore/www/js/dhcp.js index 4f013428..5e7f67c0 100644 --- a/DnsServerCore/www/js/dhcp.js +++ b/DnsServerCore/www/js/dhcp.js @@ -47,8 +47,8 @@ function refreshDhcpLeases() { dhcpLeases[i].address + "" + dhcpLeases[i].type + "" + htmlEncode(dhcpLeases[i].hostName) + "" + - dhcpLeases[i].leaseObtained + "" + - dhcpLeases[i].leaseExpires + + moment(dhcpLeases[i].leaseObtained).local().format("YYYY-MM-DD HH:mm") + "" + + moment(dhcpLeases[i].leaseExpires).local().format("YYYY-MM-DD HH:mm") + "" + ""; }