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:
Jiale Liu 2024-04-15 00:27:49 +08:00 committed by John Crispin
parent 7306ae401c
commit 4a08383339
2 changed files with 4 additions and 3 deletions

View File

@ -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'

View File

@ -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() {