How to change the system timezone in Ubuntu
Jump to navigation
Jump to search
How to change the system timezone in Ubuntu
open the terminal and go to the server Following the below steps
Step 1:
gives the below commands to check the timezone
timedatectl
Step 2:
To check for available timezones in your server
And select anyone for your need
timedatectl list-timezones
Step 3:
Search for your time zone from the list of available time zones
Select your timezone it shows whether know or not
timedatectl list-timezones | grep -i Asia/Singapore
Step 4:
Set a new timezone using the below commands
We need to set up the new timezone
sudo timedatectl set-timezone Asia/Singapore
Step 5:
Unlink your currently-used timezone
First, we need to unlink the currently used timezone
sudo unlink /etc/localtime
Link to your new timezone.
And we need to set the new link timezone
sudo ln -s /usr/share/zoneinfo/Asia/Singapore /etc/localtime
Step 6:
check whether it’s changed or not
If it is changed your changed timezone then that’s a good job
timedatectl