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:11:16 +0000 (23:11 +0200)
commit68815c88b0ebcfd0116070510a4c43ccff1d0310
tree6974f59c360784f8c6b438fe96512c6fd4c46a82
parent790bb936f24fe6f661d93bfc2ba04198f512036b
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]>
(cherry picked from commit 07569c5af23d74bad8b78905b25d7e85bd2d3141)
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