How To

How to Change Ubuntu Timezone Using Terminal or GUI

Keeping the correct system clock is important for servers, desktop systems, scheduled tasks, and application logs. If you need to Change Ubuntu Timezone, Ubuntu provides both command-line and graphical methods that make the process quick and simple.

Whether you manage a cloud server or a personal Linux desktop, adjusting the timezone ensures accurate timestamps, cron jobs, and synchronized services.

Why You May Need to Change Ubuntu Timezone

Ubuntu automatically sets the timezone during installation. However, users often need to update it later when moving servers between regions, deploying cloud instances, or configuring remote systems.

An incorrect timezone can create issues with:

  • Scheduled cron tasks
  • Server logs
  • Database timestamps
  • Application monitoring
  • Automated backups

Thankfully, Ubuntu includes built-in tools that allow you to modify timezone settings without rebooting the machine.

Change Ubuntu Timezone Using timedatectl

The easiest and most reliable method is the timedatectl command. It works on all modern Ubuntu releases that use systemd.

First, check the current timezone:

timedatectl

Ubuntu will display details such as local time, UTC time, and the active timezone.

Next, list all available timezones:

timedatectl list-timezones

You can scroll through the list or search for a specific region. Once you identify the correct timezone, apply it using:

sudo timedatectl set-timezone America/New_York

Replace the example timezone with your preferred region and city.

After making the change, verify the configuration again:

timedatectl

This method updates the system timezone instantly without requiring a reboot.

Change Ubuntu Timezone Through GUI

Desktop users can also Change Ubuntu Timezone using the GNOME Settings interface.

Open the system settings menu and navigate to:

System → Date & Time

From there, disable automatic timezone detection if it is enabled. You can then manually search for your city or region and apply the new timezone.

The graphical method is especially useful for users unfamiliar with terminal commands.

Troubleshooting Timezone Issues

Sometimes timezone changes may not work as expected. Here are a few common fixes.

Invalid Timezone Error

Timezone names are case-sensitive. Always use the exact format shown by:

timedatectl list-timezones

Logs Still Show Old Timezone

Certain services continue using the previous timezone until restarted. Restart the affected application or reboot the service manually.

Automatic Timezone Not Updating

Ensure the system has internet access and location services enabled if using automatic detection on Ubuntu Desktop.

Conclusion

If you need to Change Ubuntu Timezone, Ubuntu offers both terminal and graphical solutions that are fast and reliable. The timedatectl command remains the preferred option for servers and remote systems because it works instantly and requires minimal effort.

For desktop users, the built-in Date & Time settings provide an easier visual approach. Regardless of the method you choose, keeping the correct timezone helps maintain accurate logs, task scheduling, and overall system stability.

Cyber Defence

Recent Posts

groupdel Command in Linux: Remove a Group and Audit Files

The groupdel command in Linux removes a group from the system. It deletes the group's entry from /etc/group and /etc/gshadow,…

12 hours ago

wc Command in Linux: Count Lines, Words, Characters, and Bytes

The wc command in Linux counts lines, words, characters, and bytes in files or standard input. It…

12 hours ago

top Command in Linux: Monitor Processes and Resource Usage

The top command in Linux provides a real-time view of running processes and system resource usage. From…

12 hours ago

usermod Command in Linux: Modify User Accounts and Groups

The usermod command in Linux modifies existing user account attributes. You can use it to manage group…

12 hours ago

sort Command in Linux: Sort Text, Numbers, Columns, and More

The sort command in Linux reads lines from files or standard input and writes them to standard…

2 days ago

wall Command in Linux: Broadcast Messages to Logged-In Users

The wall command in Linux sends a message to the terminals of all currently logged-in users. The…

2 days ago