Skip to content
Follow
Ubuntu Linux

How to Change Time Format in Ubuntu: 12h or 24h

Richard
Written by
Richard
Jan 19, 2023 Updated Sep 15, 2026 3 min read
How to Display Seconds on Ubuntu Top Menu Clock
How to Display Seconds on Ubuntu Top Menu Clock

The time format in Ubuntu changes how your top bar clock displays time between a 12-hour AM/PM layout and a 24-hour clock. You can switch between these two formats at any time using either the desktop settings app or a single command in the terminal.

Advertisement
⚡ Quick Answer

Open Settings , go to System, then Date & Time, and select your preferred Time Format from the dropdown. Alternatively, use the terminal command gsettings set org.gnome.desktop.interface clock-format 12h or 24h.

Advertisement

Quick Settings Menu

You can quickly change the time format in Ubuntu using the Quick Settings menu, which is the fastest way to access your clock settings.

Change system time format using the Settings app

You can change time format Ubuntu preferences directly through the main Settings app to switch between a 12-hour and 24-hour clock display. Open the system menu from the top-right corner of your screen, click the gear icon to open Settings, and go to the Date & Time tab where you can toggle the 24-hour time switch on or off.

ubuntu linux activities overview search box
ubuntu Linux activities overview search box

Alternatively, click the Quick Settings menu at the top-right and select the gear icon.

ubuntu linux system menu settings button
Ubuntu Linux system menu settings button

In the Settings sidebar, scroll down and click on System, then select Date & Time.

Ubuntu Linux date and time pane
Ubuntu Linux date and time pane

Look for the Time Format section. Click the drop-down menu to choose between 24-hour or AM/PM.

Advertisement
Ubuntu Linux date and time pane time format options
Ubuntu Linux date and time pane time format options

Your choice takes effect instantly.

Change system time format using the command terminal console

You can change time format Ubuntu configurations quickly using the command terminal if you prefer typing commands instead of using the graphical menu. Press CTRL + ALT + T to open your terminal window, then paste the specific gsettings command to switch your clock between a 12-hour and 24-hour format instantly.

Open the terminal by pressing CTRL + ALT + T.

Ubuntu Linux activities overview Terminal search
Ubuntu Linux activities overview Terminal search

To set your clock to a 12-hour format, type this command and hit Enter:

Advertisement

gsettings set org.gnome.desktop.interface clock-format 12h

To switch back to a 24-hour format, type this command and hit Enter:

gsettings set org.gnome.desktop.interface clock-format 24h

Change system time format using the Dconf Editor

You can change time format Ubuntu settings using Dconf Editor, which is an advanced low-level configuration tool for tweaking core system options. This method requires you to install the editor first and navigate through specific system paths to adjust the clock display if you prefer a graphical tool for deeper system tweaks.

Advertisement

Dconf Editor is an advanced tool that lets you change core system settings. Incorrect changes can harm system stability.

📝Good to KnowYou must install this tool first.

Learn how to install software here: How to add or remove software on Ubuntu Linux.

ubuntu linux decon editor install
Ubuntu Linux decon editor install

After launching Dconf Editor, navigate to this path:

💡Tiporg -> gnome -> desktop -> interface -> clock-format
Advertisement

Turn the "Use default value" switch off. Then, enter '12h' or '24h' into the Custom value box to set your preference.

Ubuntu Linux date and time pane time format options via dconf
Ubuntu Linux date and time pane time format options via dconf

Conclusion

You've learned how to toggle your time display using the Settings app, the terminal, or the Dconf Editor. Choose the method that feels most comfortable for you.

How do I change the time to 24h in Ubuntu?

Open the Date & Time settings and toggle the format switch. You can change how the hour is displayed by selecting 24-hour or AM/PM for Time Format.

How to change time formatting?

Right click on the date. And time then click adjust date/. Time then at the right under related settings click date time and regional formatting.

```

Was this guide helpful?

Was this helpful?
Richard

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.

Advertisement

📚 Related Tutorials

How to Install Additional Software on Ubuntu
Ubuntu Linux How to Install Additional Software on Ubuntu
How to Display Seconds on Ubuntu Top Menu Clock
Ubuntu Linux How to Display Seconds on Ubuntu Top Menu Clock
How to Add Weather Info to Ubuntu Top Menu Bar
Ubuntu Linux How to Add Weather Info to Ubuntu Top Menu Bar
How to Show Weekday on Ubuntu Top Menu Bar
Ubuntu Linux How to Show Weekday on Ubuntu Top Menu Bar

1 Comment

Leave a Comment

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