Once a timezone is set the operating system’s time is determined as an offset from UTC (the Coordinated Universal Time).
The timezone will be automatically set if Location Services permissions are enabled. To enable Location Services permissions (normally already enabled), under Settings, choose Privacy and set Location Services on.
To set the timezone use the timedatectl command from the systemd, systemd package. A list of timezones is available with the list-timezones command:
$ timedatectl list-timezones Africa/Abidjan Africa/Accra Africa/Addis_Ababa ... Asia/Seoul Asia/Shanghai Asia/Singapore ... Australia/Melbourne Australia/Perth Australia/Sydney Europe/Amsterdam ... Pacific/Tongatapu Pacific/Wake Pacific/Wallis UTC
To set the timezone for a specific region:
$ sudo timedatectl set-timezone Australia/Canberra $ sudo timedatectl set-timezone Asia/Singapore
Then check the current time:
Another way to change the timezone of the operating system manually is to reconfigure the tzdata package. This will ask for the timezone, selected from a list of known regions.
$ wajig reconfigure tzdata Current default time zone: 'Australia/Canberra' Local time is now: Sat 30 Nov 12:17:07 AEDT 2019. Universal Time is now: Sat Nov 30 01:17:07 UTC 2019.
The use of an older command, tzconfig, is deprecated.
Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0