How to Set Timezone in FunOS

Setting the correct timezone on your system is crucial to ensure accurate timestamps, especially when working with files, scheduled tasks, or applications that rely on the system clock. In FunOS, configuring the timezone can be done easily using the tzdata package.

In this guide, we will walk you through the steps to set or change the timezone in FunOS using the Terminal.

Step 1: Open the Terminal

First, open the terminal. You can do this by clicking the Menu in the lower-left corner, then selecting Terminal.

Alternatively, you can press Ctrl + Alt + T to launch the terminal.

Step 2: Update Your System (Optional)

While this step is optional, it’s always a good idea to make sure your system is up to date before making configuration changes. To update your system, run the following commands:

sudo apt update
sudo apt upgrade

After updating your system, proceed to the next step.

Step 3: Configure the Timezone Using tzdata

The main command you’ll use to set the timezone is:

sudo dpkg-reconfigure tzdata

This command will bring up an interactive configuration menu, allowing you to select your desired timezone.

Explanation of the Command:

  • dpkg-reconfigure: This command is used to reconfigure packages already installed on your system.
  • tzdata: This is the package that holds the time zone database used by your system.

Step 4: Selecting the Timezone

After running the command, you’ll see a graphical interface or a text-based interface, depending on your system setup. Follow these steps to select the correct timezone:

  1. Select the Geographic Area: You’ll first be asked to select your geographic area (e.g., America, Europe, Asia). Use the arrow keys to navigate and press Enter to select your region.
  2. Select Your Specific Timezone: After choosing the geographic area, you will be prompted to choose your specific timezone (e.g., New York, London, Tokyo). Again, use the arrow keys and press Enter once you’ve highlighted your preferred timezone.

The system will then automatically apply the selected timezone.

Step 5: Verify the Timezone Configuration

Once you’ve configured the timezone, it’s a good idea to verify that everything is set correctly. You can do this by running the following command:

timedatectl

This command will display the current time settings, including the timezone. You should see output similar to this:

Local time: Thu 2024-09-07 14:00:00 EDT
Universal time: Thu 2024-09-07 18:00:00 UTC
RTC time: Thu 2024-09-07 18:00:00
Time zone: America/New_York (EDT, -0400)

In the example above, the timezone is set to America/New_York, but it will reflect whatever timezone you selected during configuration.

Step 6: Reboot the System (Optional)

In most cases, you do not need to reboot your system for the changes to take effect. However, if you’re experiencing issues or want to ensure all services are using the new timezone, you can reboot the system with the following command:

sudo reboot

Troubleshooting

  1. Timezone Not Changing: If the timezone does not change after running dpkg-reconfigure tzdata, ensure you are running the command with sudo privileges.

Conclusion

Setting the correct timezone in FunOS is simple and can be done using the dpkg-reconfigure tzdata command. Ensuring that your system is operating in the correct timezone is essential for accurate time tracking and scheduling. If you follow this guide, you should have no problem setting your timezone on FunOS.

For more tutorials and help with FunOS, visit our Documentation page.

3 responses to “How to Set Timezone in FunOS”

  1. Mark Avatar
    Mark

    Tray clock widget only shows UTC, not local time.
    xclock, too, only shows UTC
    Tried setting the RTC to my local time, but that didn’t make a difference.

  2. Mark Avatar
    Mark

    Addendum to my last:

    The login screen shows the local time, but after I log in, all visible clocks switch to UTC.

    1. admin Avatar

      Hi Mark,

      Thank you for your comment and for sharing your experience.

      It sounds like your system is still using UTC as the system timezone even after setting the local time. This is a common issue, especially when the hardware clock (RTC) and system clock are not fully synchronized.

      Here are a few steps you can try to resolve the issue:

      1. Check the current timezone setting
      Open a terminal and run:

      timedatectl

      This will show you the current system time, RTC time, and which timezone is being used.

      2. Ensure your local timezone is set correctly
      If it’s still showing UTC, you can set your local timezone using:

      sudo timedatectl set-timezone Asia/Jakarta

      (Replace `Asia/Jakarta` with your actual timezone.)

      3. Set the hardware clock to local time
      If you want the RTC (BIOS/UEFI clock) to follow local time instead of UTC, run:

      sudo timedatectl set-local-rtc 1 --adjust-system-clock

      Then reboot and check again if the tray clock, and xclock reflect the correct local time.

      Let me know if this helps or if the issue persists. I’d be happy to look into it further!

      Best regards,
      Bustami Arifin
      FunOS Maintainer

Leave a Reply

Your email address will not be published. Required fields are marked *