mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-18 21:28:02 +00:00
base-files: fix luci TZ default show zonename
fix default timezone to correct GMT0, origin value 'UTC' is zonename, not timezone. Signed-off-by: Jiale Liu <admin@licsber.site> Link: https://github.com/openwrt/openwrt/pull/15128 Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
7306ae401c
commit
4a08383339
@ -312,7 +312,8 @@ generate_static_system() {
|
|||||||
delete system.@system[0]
|
delete system.@system[0]
|
||||||
add system system
|
add system system
|
||||||
set system.@system[-1].hostname='OpenWrt'
|
set system.@system[-1].hostname='OpenWrt'
|
||||||
set system.@system[-1].timezone='UTC'
|
set system.@system[-1].timezone='GMT0'
|
||||||
|
set system.@system[-1].zonename='UTC'
|
||||||
set system.@system[-1].ttylogin='0'
|
set system.@system[-1].ttylogin='0'
|
||||||
set system.@system[-1].log_size='128'
|
set system.@system[-1].log_size='128'
|
||||||
set system.@system[-1].urandom_seed='0'
|
set system.@system[-1].urandom_seed='0'
|
||||||
|
@ -9,8 +9,8 @@ validate_system_section() {
|
|||||||
'hostname:string:OpenWrt' \
|
'hostname:string:OpenWrt' \
|
||||||
'conloglevel:uinteger' \
|
'conloglevel:uinteger' \
|
||||||
'buffersize:uinteger' \
|
'buffersize:uinteger' \
|
||||||
'timezone:string:UTC' \
|
'timezone:string:GMT0' \
|
||||||
'zonename:string'
|
'zonename:string:UTC'
|
||||||
}
|
}
|
||||||
|
|
||||||
system_config() {
|
system_config() {
|
||||||
|
Loading…
Reference in New Issue
Block a user