git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
a35fffe
)
luci-mod-admin-full: display routers localtime again
author
Jo-Philipp Wich
<redacted>
Thu, 15 Jan 2015 16:41:26 +0000
(17:41 +0100)
committer
Jo-Philipp Wich
<redacted>
Thu, 15 Jan 2015 16:41:26 +0000
(17:41 +0100)
Signed-off-by: Jo-Philipp Wich <redacted>
modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
patch
|
blob
|
history
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 17dfd14666140a7a7cb64a65dbf361ac0664fdfe..6fca1c6b0f5b63ee9021188cd64ecef104e33ca7 100644
(file)
--- 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);
git clone https://git.99rst.org/PROJECT