Automatically Set Time Zone in Ubuntu: A Step-by-Step Guide
Automatically setting your time zone in Ubuntu uses the system’s location detection feature to keep your clock accurate. A time zone is basically the standard time for a specific area, like Eastern Time or Pacific Time.
This setting is really handy because your Ubuntu computer will show the correct date and time without you doing anything. This helps make sure your schedule and alarms always work right.
Ubuntu 22.04 LTS has a straightforward way to turn on automatic time zone settings. When you activate it, your Ubuntu system figures out where you are and changes the time zone to match. It even handles switching for daylight saving time automatically.
Having your time zone set up automatically means your Ubuntu computer’s clock stays correct. This prevents problems with tasks that rely on timing, like backups and system updates.
Enable automatic time zone detection by opening Settings, navigating to Date & Time, and toggling the Automatic Time Zone switch to On. Ensure location services are also enabled for accurate detection. This automatically adjusts your system’s time zone and daylight saving settings.
How to enable or disable set time zone automatically in Ubuntu Linux
How to enable or disable automatic time zone setting in Ubuntu Linux
This automatic time zone setting can be turned on or off within Ubuntu Linux through System Settings. If you want Ubuntu to pick your time zone for you, turn it on. If you’d rather set it yourself, you can turn off automatic time zone updates.
You will need to set your Ubuntu Linux system time zone manually if you do not allow Ubuntu Linux to automatically detect and apply your time zone. Automatic time zone detection uses your computer's location to ensure your clock is always correct, preventing issues with time-sensitive applications or scheduling.
Here’s how to enable or disable it.
Ubuntu Linux keeps most of its settings in the central System Settings panel. You can adjust system configurations, user accounts, and updates within this panel.

Alternatively, you can click on the System menu in the top-right corner of your desktop’s top bar.
From the System menu, select Settings, as shown below.

In the Settings app, click on the Date & Time tile.

In the System Settings -> Date & Time panel, flip the Automatic Time Zone switch to the On position.
When it’s on, your time zone should update automatically if you’re connected to the internet and the location services feature is active.
To update your time zone yourself, switch this to Off.

Remember to make sure location services are enabled in Ubuntu Linux. The automatic time zone feature requires location services to be active.
How to enable or disable location services in Ubuntu Linux
That’s all there is to it!
Conclusion:
- Enabling the automatic time zone feature in Ubuntu Linux can ensure that your system’s date and time stay accurate without manual intervention.
- When the automatic time zone setting is enabled, the system will also manage daylight saving time adjustments.
- However, for users who prefer manual control over their time zone, Ubuntu Linux provides a straightforward method to toggle the automatic time zone setting off and update it manually as needed.
- It’s important to ensure that location services are enabled in Ubuntu Linux so that the automatic time zone feature will function correctly.
How do I turn on automatic time zone in Ubuntu?
To turn on the automatic time zone in Ubuntu, open Settings, then System, and select Date & Time.
How do I get the time zone in Ubuntu?
The timedatectl command is a utility that allows you to view and change the system's time and date settings. It is available on all modern systemd-based Linux distributions, including Ubuntu 20.04. To display the current timezone, run the timedatectl command without any arguments.
How to set timezone permanently in Linux?
Setting your time zone permanently in Linux typically requires more than just the tzselect command, as it only affects your current session.
How to set time zone in sudo?
To change the time zone in Linux, use sudo timedatectl set-timezone followed by a “Region/City” name found using timedatectl list-timezones.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
[…] cannot set the time zone manually when Automatic Time Zone is set to On. Turn off Automatic Time Zone to manually set your system’s time […]