mirror of
https://github.com/openwrt/luci.git
synced 2026-01-09 07:40:24 +04:00
modules: fix default values
fix default values for luci-base and luci-mod-{dashboard,status,system}
Signed-off-by: Andy Chiang <AndyChiang_git@outlook.com>
This commit is contained in:
@@ -52,12 +52,12 @@ return baseclass.extend({
|
||||
var date = new Date(unixtime * 1000),
|
||||
zn = uci.get('system', '@system[0]', 'zonename')?.replaceAll(' ', '_') || 'UTC',
|
||||
ts = uci.get('system', '@system[0]', 'clock_timestyle') || 0,
|
||||
hc = uci.get('system', '@system[0]', 'clock_hourcycle') || 'h23';
|
||||
hc = uci.get('system', '@system[0]', 'clock_hourcycle') || 0;
|
||||
|
||||
datestr = new Intl.DateTimeFormat(undefined, {
|
||||
dateStyle: 'medium',
|
||||
timeStyle: (ts == 0) ? 'long' : 'full',
|
||||
hourCycle: hc,
|
||||
hourCycle: (hc == 0) ? undefined : hc,
|
||||
timeZone: zn
|
||||
}).format(date);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user