luci-mod-system: fix time display logic
authorJo-Philipp Wich <[email protected]>
Tue, 19 Oct 2021 21:08:36 +0000 (23:08 +0200)
committerJo-Philipp Wich <[email protected]>
Tue, 19 Oct 2021 21:09:46 +0000 (23:09 +0200)
commit07569c5af23d74bad8b78905b25d7e85bd2d3141
treefc683cbe898f0ec76c3e1592d7b17b2903e0e0e2
parentcd3d614c560bdea99240ab68261c15b774c7a5fe
luci-mod-system: fix time display logic

Use the system/info ubus call to obtain a TZ adjusted epoch value and
format the date time string manually instead of relying on the browsers
local representation.

Fixes: #5454
Signed-off-by: Jo-Philipp Wich <[email protected]>
modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js
modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json