4

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)

2 Answers 2

4

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
4
  • 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
    Commented Jul 26, 2015 at 20:17
  • @Jorge, probably it's a bug. On Launchpad, there are some ways to get around it.
    – png2378
    Commented Jul 27, 2015 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
    Commented Jul 27, 2015 at 22:31
  • this answer does not work with elementary OS 0.4.1
    – Alex Jones
    Commented Oct 9, 2017 at 13:45
1

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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