Oh never mind please. I got LuCI's System and /etc/config/system timezones to coordinate by editing LuCi and seeing what it does to config, instead of the other way around. Editing LuCI also answers question 4.
--
My router is a TP-link C7 v5 running on a OpenWrt release 19.07.8 custom image.
In /etc/config/system
, I changed the timezone from UTC to local. The relevant portion (before editing) looks like:
config system
option hostname 'OpenWrt'
option timezone 'UTC'
The result is that I get local time in logs and LuCI displays, or at least these two (so far confirmed):
/var/log/auth.log[Never mind this. I got confused.]- LuCI > Services > Dynamic DNS > the "Last Update, Next Update" column
However, timezone is still UTC in
- LuCI > System > General Settings (tab) > Timezone
Question
-
Is Timezone in LuCI-System-General Settings supposed to coordinate with
/etc/config/system
? -
If yes to 1, what could have gone wrong? How can I get them to coordinate? (I rebooted the router.)
-
If no to 2, what is Timezone LuCI-System-General Settings supposed to control, indicate, etc.?
-
For Los Angeles, what is the value to put in /etc/config/system. The following page gives this complex string,
{ 'America/Los Angeles', 'PST8PDT,M3.2.0,M11.1.0' }
. Am I supposed to enterPST8PDT,M3.2.0,M11.1.0
or just one of the three?
https://github.com/openwrt/luci/blob/master/modules/luci-base/luasrc/sys/zoneinfo/tzdata.lua