How to Stop Ubuntu Linux from Automatically Changing the Time Zone

The Traveling Time Jump

Modern operating systems, including Ubuntu Linux, are designed to make travel easier by utilizing location services to detect where you are in the world. If you travel from London to New York and connect your laptop to the airport Wi-Fi, Ubuntu will detect your new IP address, query a geolocation server, and automatically shift your system clock backwards by five hours to match the Eastern Time Zone. However, if you are a remote worker who needs your computer to remain locked to your home office’s time zone for scheduling purposes, this automatic shift can cause you to miss crucial meetings.

How to Disable Automatic Time Zone Updates

You can turn off location-based time zone detection in the main Settings GUI, forcing your laptop to maintain your desired time zone regardless of where you travel.

1. Open the main Ubuntu Settings application.

2. In the left-hand sidebar, scroll down to the bottom and click on Date & Time.

3. Look for the toggle switch labelled Automatic Time Zone.

4. Click the toggle switch to turn it Off.

5. Once disabled, the “Time Zone” option immediately below it will become clickable. Click it, type in the name of your home city (e.g., “London”), and select it to permanently lock the clock to that region.

How to Disable Automatic Updates via Terminal

If you are running an Ubuntu Server without a graphical interface, you must use the `timedatectl` utility to disable the timezone daemon.

1. Open your terminal or SSH session.

2. First, check the current status of the time zone daemon by running: timedatectl status

3. To list all available time zones, run: timedatectl list-timezones

4. To lock your server to a specific time zone and bypass automatic detection, run: sudo timedatectl set-timezone Europe/London

By manually asserting a specific time zone using `timedatectl`, you override any automated geolocation scripts that might try to shift the system clock during a reboot or network change.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.