Using timedatectl
To list timezone:
# timedatectl list-timezones | grep Jakarta
Asia/Jakarta
To set timezone:
# timedatectl set-timezone Asia/Jakarta
To show (or # timedatectl status):
# timedatectl
Local time: Tue 2017-04-04 07:33:53 WIB
Universal time: Tue 2017-04-04 00:33:53 UTC
RTC time: Tue 2017-04-04 00:33:53
Time zone: Asia/Jakarta (WIB, +0700)
NTP enabled: no
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a
tzconfig deprecated
# tzconfig --help
WARNING: the tzconfig command is deprecated, please use:
dpkg-reconfigure tzdata
References:
- http://www.server-world.info/en/note?os=Debian_8&p=timezone
- https://debian-administration.org/article/213/Changing_the_timezone_of_your_Debian_system
- https://www.debian.org/doc/manuals/system-administrator/ch-sysadmin-time.html
- https://www.freedesktop.org/software/systemd/man/timedatectl.html