TL;DR
Here are the five best ways to change the time zone in Ubuntu:
- Use the graphical interface, where you have to turn off the
Automatic Date & Time
feature and select your location on the map or type it into the search bar. - Alternatively, you can use the Linux command line by executing the command
timedatectl set-timezone Your_Time_Zone
to change the time zone to your desired location. - Another way is to configure NTP settings. Install the NTP package, edit the
/etc/ntp.conf
file, save changes, and then restart the NTP service. - For the dual boot systems, you need to edit the GRUB config file. Add
clocksource=hpet
toGRUB_CMDLINE_LINUX_DEFAULT
, save changes, update GRUB, and then restart your computer. - Enable automatic Daylight Saving Time (DST) with the
timedatectl
command to verify that the system clock is using the right time zone based on your location.
However, to ensure that your Ubuntu system clock is accurate, it’s important to regularly check and monitor it, set the correct time zone, and test its accuracy. It’s also crucial to keep the system up-to-date with security patches and software updates to prevent time-related issues and maintain a reliable clock.
Read on to find out more about how to change the time zone in Ubuntu in five easy ways and the best practices to manage it.
Setting the correct time zone is essential for the proper functioning of various system processes, such as scheduling tasks, logging events, and maintaining system security. Failure to set the correct time zone can lead to incorrect timestamps on files, inaccurate system logs, and vulnerabilities in security protocols. In this article, I’ll provide guidance on the five best methods to set or change the time zone, along with five quick tips for time zone management in Ubuntu.
How to Change the Time Zone in Ubuntu
To change the time zone in Ubuntu, you can either use the graphical interface or the command line. Both methods are equally effective, and the choice depends on your preference and experience with the Linux distro. Here is the detailed guide with step-by-step instructions:
1. Graphical Interface
The GUI time zone settings are found in the main settings menu of your Ubuntu system, which can be easily accessed by clicking on the gear icon. Here’s how you can navigate to it and change the time zone in Ubuntu:
- Click on the top right corner of your screen and select Settings.

- Scroll down and select Date & Time in the left pane. Turn off Automatic Date & Time and then click Time Zone.

- Click on the map to select your location and close the window. Alternatively, you can type and search for your location at the top.

- Once you’ve changed the change the time zone settings, close the map window to save changes.
2. Command Line
If you prefer to use the command line interface to change the time zone in Ubuntu, the process is straightforward and can be done in just a few steps using the timedatectl
command in the Terminal app. Here’s how you can do this:
- Open the Terminal window, and time the following command to check your current timezone:
timedatectl
- Type the following command, replacing Your_Time_Zone with your desired time zone:
sudo timedatectl set-timezone Your_Time_Zone
- Enter your administrative password if prompted.
- Then, run the following command to check if the changes applied were successful.
timedatectl
- Once you execute the command, you’ll see the following output:

You can use the timedatectl list-timezones
to see if your time zone is available in the list. However, you can also look into the list of available time zones on Ubuntu’s official man page.
3. Configure NTP
NTP (Network Time Protocol) is a protocol used to synchronize the time of a computer with a reference time source. Ubuntu uses NTP to synchronize the system clock with remote servers. Here’s how to configure NTP settings in Ubuntu:
- Open a terminal window, and type the following command to install the NTP package:
sudo apt-get install ntp
- Enter your administrative password if prompted.
- Once the installation is complete, open the NTP configuration file by typing the following command:
sudo nano /etc/ntp.conf
- Edit the NTP servers section to add the NTP servers you want to use. Here’s an example:
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
- Save the changes by pressing Ctrl + O and then Ctrl + X to exit Nano.
- Restart the NTP service by typing the following command:
sudo service ntp restart
4. Dual Boot Systems
If you’re running a dual boot system with both Windows and Ubuntu installed, you may run into issues with time zone settings. This is because Windows and Ubuntu handle time zone settings differently, which can cause conflicts when you switch between operating systems. To avoid these conflicts, you’ll need to configure time zone settings differently on your Ubuntu system. Here’s how to do it:
- In the Terminal window, execute the following command to edit the GRUB configuration file:
sudo nano /etc/default/grub
- Look for the line that begins with
GRUB_CMDLINE_LINUX_DEFAULT
and add the following to the end of the line:
clocksource=hpet
- Now, the line should look like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash clocksource=hpet"
- Save the changes by pressing Ctrl + O and then Ctrl + X to exit the nano editor.
- Update GRUB by typing the following command:
sudo update-grub
- Use the
sudo reboot
command to restart your Linux system.
5. Adjust DST
DST (Daylight Saving Time) is a system used to adjust the clock for more daylight during certain periods of the year. Enabling automatic DST adjustments on your Ubuntu system can help ensure that your system clock stays accurate and reflects the correct time during DST periods. Here’s how to enable automatic DST adjustments using the timedatectl
command:
- Execute the command below to verify that the system clock is using UTC:
timedatectl
- Use the
timedatectl
command to enable automatic DST adjustments:
sudo timedatectl set-ntp true
sudo timedatectl set-local-rtc 1
- Now, restart your system with the
sudo reboot
command to apply the changes.
5 Quick Tips to Manage the Time Zone in Ubuntu
Managing time zones in Ubuntu is important to ensure that your system clock displays the correct time and that time-sensitive operations are performed accurately. Here are five quick tips to help you manage the time zone in Ubuntu more effectively:
- ⏰ Check the system clock regularly: It’s important to check the system clock on your Ubuntu system regularly to make sure that it’s displaying the correct time. You can do this using the time and date settings in the system tray or by running the
timedatectl
command in the Terminal. Regularly checking the system clock can help you identify and resolve time-related issues quickly. - 🌐 Set the correct time zone: Setting the correct time zone is essential for ensuring that your system clock displays the correct time. You can set the time zone in Ubuntu using either the graphical interface or the command line. To set the time zone via the command line, use the command
sudo timedatectl set-timezone YOUR_TIME_ZONE
. - 📋 Monitor system logs: Keeping an eye on the system logs can help you identify and resolve issues quickly, preventing them from causing problems down the line. This is especially crucial if you’re using time-sensitive server applications, such as a cron job that sends out daily email notifications to users. By proactively keeping an eye on system logs, you can ensure that your operations run smoothly and effectively.
- ⏱ Test system clock accuracy: It’s important to test the accuracy of your Ubuntu system’s clock regularly. You can test the system clock accuracy using various tools and commands, such as the
ntpstat
ortimedatectl
command. This can help you identify any inaccuracies or issues with your system’s clock, allowing you to resolve them quickly. - 🔄 Keep your Ubuntu system up to date: It’s essential to keep your Ubuntu system up to date with the latest security patches and software updates. These updates may include important time zone updates, which can help ensure that your system’s clock stays accurate. To update your system, run
sudo apt update
andsudo apt upgrade
.
Wrapping up
To ensure proper scheduling, synchronization, system security, and performance in Ubuntu, it’s crucial to set an accurate time zone. The details in this guide will make it easier for you to change the time zone in Ubuntu settings through the graphical interface or command line and even configure advanced settings to suit individual preferences.
Time zone settings are just one aspect of optimizing and customizing an Ubuntu system. Exploring articles on other system configurations and settings, such as creating quick access to particular apps using desktop shortcuts, memory management, and resolving critical sudo bugs, can help you get the most out of your system. By staying informed, you can make informed decisions and fully customize your system for optimal performance and security.
Frequently Asked Questions
What should I do if my desired time zone is not available on the list?
If your desired time zone is not available on the list in Ubuntu, you can install the missing time zone by installing the tzdata package. To install it, open the Terminal and enter the sudo apt-get install tzdata
command. This will download and install the latest version of the tzdata package, which contains time zone information for various regions around the world. After the installation is complete, you can update the time zone settings for your system or for individual users using the command line or graphical interface.
How do I check my current time zone in Ubuntu?
The easiest way to check your current time zone in Ubuntu is to use the command line tool called timedatectl
. Here’s how to use it:
1. Pressing Ctrl + Alt + T on your keyboard.
2. Look for the line that says “Time zone” to see the name of your current time zone.
3. If you want to see a list of all available time zones, type the following command: timedatectl list-timezones
4. To set your time zone, use the following command:sudo timedatectl set-timezone
Replace <time zone>
with the name of your time zone, such as “America/New_York”.
5. Once you’ve set your time zone, your system clock will automatically adjust to the correct time for your location.
Why are my time zone settings not working?
Time zone settings may not work due to incorrect time zone selection, outdated system, incorrect hardware clock settings, incorrect network time synchronization, or file system corruption. Check time zone, update system, verify hardware clock and network synchronization, and repair file system errors using relevant commands. If problems persist, seek assistance from the Ubuntu community or professional support service.
Can I change the time zone automatically based on my location?
Yes, you can change the time zone automatically based on your location by using Ubuntu’s Automatic Time Zone feature. Enable this option in the Settings app, and Ubuntu will detect your location via an internet connection and set the correct time zone. However, it may not work with a VPN or hidden location. In that case, you’ll have to set the time zone manually.
Why is setting the accurate time zone important?
Setting the accurate time zone is important because it prevents scheduling and synchronization issues, impacts system security, and improves performance. Incorrect settings can cause problems with email, database transactions, SSL/TLS certificates, and background tasks such as backups and updates.
Can I change the time zone settings for individual users on Ubuntu?
Yes, you can change the time zone settings for individual users by using the command line. Here are the two ways to do it:
– Command line: Execute the sudo timedatectl set-timezone Your_Time_Zone --user=username
in the Terminal window.
– Graphical Interface: Navigate to user accounts in system settings, select user, choose Time & Date, and set desired time zone. Ensure correct settings for each user to avoid errors.
How do I configure automatic time synchronization on Ubuntu?
Ubuntu has NTP (Network Time Protocol) enabled by default, automatically synchronizing the system clock with remote NTP servers. If you want to configure automatic time synchronization settings, you can use the timedatectl
command to enable or disable automatic time synchronization. For example, use the command: sudo timedatectl set-ntp true
to enable automatic time synchronization.