Page MenuHomeVyOS Platform

Fix timezone migrator (system 13-to-14)
Closed, ResolvedPublicBUG

Description

The migration script system 13-to-14 executes find /usr/share/zoneinfo/posix -type f -or -type l | sed -e s:/usr/share/zoneinfo/posix/:: to find a list of valid timezones. This command only returns the first level of the timezones (continent etc.) resulting in the migrator changing valid timezones to UTC.

We should update the migrator to use systemd-provided command timedatectl list-timezones to get a valid list and prevent valid timezones being mistakenly changed.

Details

Difficulty level
Easy (less than an hour)
Version
1.3 and up
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

sarthurdev changed the task status from Open to In progress.Sep 7 2023, 12:29 PM
sarthurdev claimed this task.
sarthurdev created this task.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus (1.3.4) board.