mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
Closes: #2326. There are plans to remove /etc/timezone from Debian (Debian bug: #822733). It has been removed temporarily and that caused failures in FreedomBox. Since we use systemd-timesyncd and timedatectl, use timedatectl to retrieve the currently set timezone value. This eliminates the need to read timezone at a lower level. Tests: - Getting and setting the timezone works. - Removing /etc/timezone and /etc/localtime then visiting the Date & Time app works. After setting the timezone, /etc/localtime file is created as symlink. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>