]> git.ipfire.org Git - thirdparty/openwrt.git/commit
base-files: uci-defaults: migrate time zonename on upgrade 21482/head
authorEric Fahlgren <ericfahlgren@gmail.com>
Sat, 10 Jan 2026 01:32:37 +0000 (17:32 -0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 11 Jan 2026 18:12:41 +0000 (19:12 +0100)
commit54c7ad8d8ad8046a31e7ef88e1184f9f722ba9fe
tree196f73cb625bd7824b1d4cefe8aa39ad6b49a01e
parentcffc2a91023eff4ff41048822083e1bd56795b59
base-files: uci-defaults: migrate time zonename on upgrade

Timezone names no longer allow spaces, so older installations
upgrading to new will have their timezone reset to UTC.

For example, on 24.10:
  $ uci get system.@system[0].zonename
  America/Los Angeles

After upgrade to 25.12:
  $ uci get system.@system[0].zonename
  UTC

Add a migration script to edit zonename on first boot.

Fixes: https://github.com/openwrt/luci/commit/d9a087e4
Link: https://github.com/openwrt/luci/issues/8203
Link: https://forum.openwrt.org/t/openwrt-25-12-0-rc1-release-candidate/244364/98
Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21482
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/base-files/files/etc/uci-defaults/15_migrate-time-zonename [new file with mode: 0644]