Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

Set the Timezone

20191130 Once a timezone is set the operating system's time is determined as an offset from the UTC.

The timezone will be automatically set if Location Services permissions are enabled. To enable Location Services permissions, under Settings, choose Privacy and set Location Services on.

To set the timezone use the timedatectl command from the 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

Then set the timezone for a specific region:

$ timedatectl set-timezone Australia/Canberra

$ timedatectl set-timezone Asia/Singapore

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 the older tzconfig command is deprecated.


Copyright © 1995-2020 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware and the author of open source software including Rattle and wajig.
Also the author of Data Mining with Rattle and Essentials of Data Science.