summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-admin-full/luasrc/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-01-15 17:41:26 +0100
committerJo-Philipp Wich <jow@openwrt.org>2015-01-15 17:41:26 +0100
commit458469bb4f3e624373da89f2f49363d097237379 (patch)
treee2fc27082c363e5e0116259c0ccfa600e1d1baf1 /modules/luci-mod-admin-full/luasrc/view
parenta35fffe3c3266aa768a332674c5cfcc39a3f1c51 (diff)
luci-mod-admin-full: display routers localtime again
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'modules/luci-mod-admin-full/luasrc/view')
-rw-r--r--modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm b/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
index 17dfd14666..6fca1c6b0f 100644
--- a/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
+++ b/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
@@ -54,7 +54,7 @@ You may obtain a copy of the License at
local rv = {
uptime = sysinfo.uptime or 0,
- localtime = sysinfo.localtime or 0,
+ localtime = os.date(),
loadavg = sysinfo.load or { 0, 0, 0 },
memory = meminfo,
swap = swapinfo,
@@ -505,7 +505,7 @@ You may obtain a copy of the License at
var e;
if (e = document.getElementById('localtime'))
- e.innerHTML = (new Date(info.localtime * 1000)).toUTCString();
+ e.innerHTML = info.localtime;
if (e = document.getElementById('uptime'))
e.innerHTML = String.format('%t', info.uptime);