summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system/root/usr
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-10-19 23:08:36 +0200
committerJo-Philipp Wich <jo@mein.io>2021-10-19 23:09:46 +0200
commit07569c5af23d74bad8b78905b25d7e85bd2d3141 (patch)
treefc683cbe898f0ec76c3e1592d7b17b2903e0e0e2 /modules/luci-mod-system/root/usr
parentcd3d614c560bdea99240ab68261c15b774c7a5fe (diff)
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 <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-system/root/usr')
-rw-r--r--modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json b/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json
index 9acb6e4471..732a73a760 100644
--- a/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json
+++ b/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json
@@ -3,7 +3,8 @@
"description": "Grant access to system configuration",
"read": {
"ubus": {
- "luci": [ "getInitList", "getLEDs", "getLocaltime", "getTimezones", "getUSBDevices" ]
+ "luci": [ "getInitList", "getLEDs", "getTimezones", "getUSBDevices" ],
+ "system": [ "info" ]
},
"uci": [ "luci", "system" ]
},