luci-mod-admin-full: display routers localtime again
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
a35fffe3c3
commit
458469bb4f
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue