FedoraRHEL Based

How To Change TimeZone on Fedora 40

Change TimeZone on Fedora 40

In this tutorial, we will show you how to change TimeZone on Fedora 40. In today’s interconnected world, having the correct time zone configured on your Linux system is crucial for seamless communication, scheduling, and synchronization with various services and applications. Fedora 40, the latest release of the popular Linux distribution, provides multiple methods to change the time zone, ensuring a hassle-free experience for users. In this comprehensive guide, we’ll explore these methods in detail, empowering you to effortlessly adjust your system’s time zone to match your geographical location.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step change to TimeZone on Fedora 40.


Before we dive into the installation process, ensure that you have the following prerequisites in place:

  • A server running one of the following operating systems: Fedora 40.
  • You will need access to the terminal to execute commands. Fedora provides the Terminal application for this purpose. It can be found in your Applications menu.
  • A stable internet connection to download the necessary packages.
  • A non-root sudo user or access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Change TimeZone on Fedora 40

Step 1. Update the System.

To ensure a smooth installation, make sure your system is up to date. Open the terminal and execute the following command:

sudo dnf clean all
sudo dnf update

Step 2. Change TimeZone on Fedora 40.

  • Using the timedatectl Command

The timedatectl command is the recommended tool for managing time and date settings in Fedora 40. It offers a user-friendly interface and a wide range of options to simplify the process of changing the time zone. Here’s how you can leverage this powerful utility:

To list all available time zones, run the following command:

timedatectl list-timezones

Once you’ve identified the desired time zone, use the following command to set it:

sudo timedatectl set-timezone [timezone]

Replace [timezone] with the appropriate time zone from the list. For example, to set the time zone to New York, you would run:

sudo timedatectl set-timezone America/New_York

To verify that the time zone has been successfully changed, run:

timedatectl status

This command will display the current date, time, and time zone settings. With the timedatectl command, you can effortlessly manage your system’s time zone, ensuring accurate timekeeping and seamless integration with various applications and services.

  • Changing Time Zone via GUI

In addition to the command-line interface, Fedora 40 provides a user-friendly graphical method to change the time zone. This approach is particularly useful for users who prefer a visual interface or are less comfortable with terminal commands. Here’s how you can change the time zone using the GUI:

    1. Click on the “Activities” overview button (the top-left icon on the desktop).
    2. Type “Settings” in the search bar and select the “Settings” application.
    3. In the Settings window, navigate to the “Date & Time” section.
    4. Click on the “Time Zone” option, which will open a map interface.
    5. On the map, locate and click on your desired time zone.
    6. The new time zone will be applied immediately, and you can verify the change by checking the date and time displayed in the top panel.

The GUI method offers a straightforward and intuitive way to change the time zone, making it accessible to users of all skill levels.

  • Using the date Command

While the timedatectl command is the recommended approach, Fedora 40 also supports the traditional date command for managing time zone settings. This method involves creating a symbolic link to the desired time zone file in the /usr/share/zoneinfo directory. Here’s how you can use the date command to change the time zone:

To list available time zones, run the following command:


This will launch an interactive menu where you can navigate and select your desired time zone.

Once you’ve selected the time zone, the command will provide instructions on how to create a symbolic link. Follow these instructions carefully. After creating the symbolic link, verify the new time zone setting by running:


This command will display the current date and time according to the newly set time zone.

While the date command offers a more traditional approach, it may be less user-friendly for some users compared to the timedatectl or GUI methods.

Step 3. Troubleshooting Time Zone Issues.

Despite the various methods available for changing the time zone in Fedora 40, you may encounter issues or inconsistencies in certain scenarios. Here are some troubleshooting tips to help you resolve common time zone-related problems:

    • Resetting the Time Zone: If your time zone settings become corrupted or you encounter unexpected behavior, you can reset the time zone by running the following command:
sudo timedatectl set-timezone [timezone]
    • Reinstalling Packages: In some cases, issues with the time zone settings may be related to package conflicts or missing dependencies. You can try reinstalling the relevant packages by running the following command:
sudo dnf reinstall gnome-control-center
    • Checking System Logs: If you’re still experiencing issues after trying the above troubleshooting steps, you can check the system logs for any relevant error messages or clues. Open the terminal and run the following command:
sudo journalctl -b -p warning

Congratulations! You have successfully changed TimeZone. Thanks for using this tutorial to change TimeZone on Fedora 40. system. For additional help or useful information, we recommend you check the Fedora website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!


r00t is a seasoned Linux system administrator with a wealth of experience in the field. Known for his contributions to idroot.us, r00t has authored numerous tutorials and guides, helping users navigate the complexities of Linux systems. His expertise spans across various Linux distributions, including Ubuntu, CentOS, and Debian. r00t's work is characterized by his ability to simplify complex concepts, making Linux more accessible to users of all skill levels. His dedication to the Linux community and his commitment to sharing knowledge makes him a respected figure in the field.
Back to top button