How can I set the clock to display 12-hour format? Example 1:45 PM instead of 13:45.

My Language & Region settings are: Language: English; Numbers and dates: Spanish (Mexico)


To select the 12-hour format:

gsettings set com.canonical.indicator.datetime time-format 12-hour

To return to the 24-hour format:

gsettings set com.canonical.indicator.datetime time-format 24-hour
  • For some reason the clock actually disappeared after trying the first line. Now I went to Dconf-editor and looked under com.canonical.indicator.datetime and show-clock is true so I don't know what's wrong...
    – Jorge
    Jul 26 '15 at 20:17
  • @Jorge, probably it's a bug. On Launchpad, there are some ways to get around it.
    – png2378
    Jul 27 '15 at 5:16
  • @PNG Yes, apparently the bug was triggered and I solved it with Comment 8's fix, except that I chose "en_MX.UTF-8" instead of the suggested en_US value. The clock shows as 12-hour format now, except that it doesn't display AM or PM, even though I made sure %l:%M %p is set for custom-time-format. I wonder what else is broken...
    – Jorge
    Jul 27 '15 at 22:31
  • this answer does not work with elementary OS 0.4.1 Oct 9 '17 at 13:45

If you go to System Settings > Date & Time, at the bottom there is "Time Format:" just change that to AM/PM.

enter image description here

  • I'm using elementary Freya and i don't have this option, are you sure about this? Jul 26 '15 at 18:47
  • This option is present in Luna, but not in Freya.
    – png2378
    Jul 26 '15 at 19:11
  • It is present on Freya also, it is what I am currently using. Jul 26 '15 at 20:11
  • @JasonLysinger did you add the daily PPA to your sources?
    – Rafael
    Jul 26 '15 at 20:14
  • @Rafael, I did not add the daily PPA. This option has always been available to me straight from first install. Jul 26 '15 at 20:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.