Sunil Mohan Adapa 0dc8bbc865
datetime: Use timedatectl to read current timezone
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>
2023-03-13 21:23:27 -04:00
..
2022-08-15 10:36:29 -04:00
2022-12-29 11:12:46 -08:00
2022-08-29 21:06:54 -04:00
2023-02-18 17:37:54 -08:00
2022-08-15 10:36:29 -04:00
2022-08-29 08:29:03 -04:00
2022-08-15 10:36:29 -04:00
2022-11-04 14:41:32 -07:00
2023-03-13 21:19:28 -04:00