How To Set or Change Timezone on Ubuntu 20.04

How To Set or Change Timezone on Ubuntu 20.04

How To Set or Change Timezone on Ubuntu 20.04

We hope this post helped you to find out  How To Set or Change Timezone on Ubuntu 20.04

Utilizing the proper timezone is crucial for a lot of methods associated duties and processes. For instance, the cron daemon makes use of the system’s timezone for executing cron jobs, and the timestamps within the log recordsdata are based mostly on the identical system’s timezone.

On Ubuntu, the system’s timezone is about throughout the set up, however it may be simply modified at a later time.

This text describes how you can set or change the timezone on Ubuntu 20.04 utilizing the command line, or by way of the GUI.

Stipulations #

Solely the foundation or consumer with sudo privileges can set or change the system’s timezone.

Checking the Present Timezone #

timedatectl is a command-line utility that lets you view and alter the system’s time and date. It’s accessible on all trendy systemd-based Linux methods together with Ubuntu 20.04.

To print the present system’s timezone invoke the timedatectl with none arguments:

timedatectl

The output below shows that the system’s timezone is set to “UTC”:

               Local time: Wed 2020-05-06 19:33:20 UTC
           Universal time: Wed 2020-05-06 19:33:20 UTC
                 RTC time: Wed 2020-05-06 19:33:22    
                Time zone: UTC (UTC, +0000)           
System clock synchronized: yes                         
              NTP service: active                      
          RTC in local TZ: no   

The system timezone is configured by symlinking /etc/localtime to a binary timezone identifier in the /usr/share/zoneinfo directory.
Another option to view the current system’s timezone is find the file to which the symlink points to:

ls -l /etc/localtime
lrwxrwxrwx 1 root root 27 Dec 10 12:59 /etc/localtime -> /usr/share/zoneinfo/Etc/UTC

The system’s timezone in also written to the /etc/timezone file:

cat /etc/timezone
UTC

Changing the Timezone Using the timedatectl Command

Earlier than altering the timezone, you’ll want to search out out the lengthy title for the timezone you wish to use. The timezones are utilizing “Area/Metropolis” format.

To listing all accessible time zones, you may both listing the recordsdata within the /usr/share/zoneinfo listing or invoke the timedatectl command with the list-timezones choice:

timedatectl list-timezones
...
America/Montevideo
America/Nassau
America/New_York
America/Nipigon
America/Nome
America/Noronha
...

Once you identify which time zone is accurate to your location, run the following command as sudo user:

sudo timedatectl set-timezone your_time_zone

For instance, to change the system’s timezone to America/New_York:

sudo timedatectl set-timezone America/New_York

Invoke the timedatectl command to verify the changes:

timedatectl
               Local time: Wed 2020-05-06 15:41:42 EDT  
           Universal time: Wed 2020-05-06 19:41:42 UTC  
                 RTC time: Wed 2020-05-06 19:41:48      
                Time zone: America/New_York (EDT, -0400)
System clock synchronized: yes                         
              NTP service: active                      
          RTC in local TZ: no   

Changing the Timezone Using the GUI

In case you are operating Ubuntu Desktop, you may change the present system’s timezone by way of the GUI.

  1. Open the system settings window by clicking on the Settings icon, as proven within the picture beneath: 
  2. Within the system settings window click on on the Date & Time tab. If the Computerized Time Zone set to ON and you’ve got an Web connection and site service enabled, the time zone ought to be routinely set in response to your location.
  3. To pick the brand new timezone, you may both click on on the map or seek for a time zone by way of the search bar.  As soon as completed, click on on × to shut the window.

Conclusion

We’ve proven you how you can change your Ubuntu system’s timezone.

We hope the How To Set or Change Timezone on Ubuntu 20.04 help you. If you have any query regarding How To Set or Change Timezone on Ubuntu 20.04 drop a comment below and we will get back to you at the earliest.

We hope this post helped you to find out  How To Set or Change Timezone on Ubuntu 20.04  . You may also want to see – How to Install Google Chrome Web Browser on Ubuntu 20.04

Source link

Share via
Copy link
Powered by Social Snap