3

The default format is XX:XX AM/PM

How can I change it to XX:XX AM/PM Weekday Month Date ?

Searching offers up dconf-editor solutions that don't apply to 20.04

2 Answers 2

4

Clock indicator in Ubuntu MATE 20.04 LTS is controlled by indicator-datetime service, so to customize it, you have to use commands below:

gsettings set com.canonical.indicator.datetime time-format custom

gsettings set com.canonical.indicator.datetime custom-time-format '%l:%M %p %A %B %d'

it probably was doable in dconf-editor, you would have had to set the time-format to "custom" in order for your changes to show...

4
  • 1
    Thanks! worked great. The dconf-editor fixes I found suggested changing org / mate / panel / objects / clock / prefs but that entry didn't exist in my system. Your suggestion of com / canonical / indicator / datetime let me find it in dconf-editor. Jul 30, 2020 at 20:00
  • Where can we find instructions on what those %x mean?
    – Andyc
    Sep 27, 2020 at 18:38
  • 1
    @Andyc in your terminal..... man date
    – WU-TANG
    Sep 28, 2020 at 1:28
  • I'm trying to do this as well but I want the date and time on different rows. I can do this with %n but I don't know how to change the font size? <span> is not recognized in the custom-time-format field any more it seems? Apr 24, 2021 at 12:32
0

In Ubuntu 21.04, I installed dconf-editor

sudo apt install dconf-editor

Then I ran it and set the following keys to the following values to change the time format:

/org/ayatana/indicator/datetime/time-format = custom
/org/ayatana/indicator/datetime/custom-time-format = %a, %F %T

The custom formats can be found in strftime(3) - Linux manual page

I also showed multiple time zones using:

/org/ayatana/indicator/datetime/show-locations true
/org/ayatana/indicator/datetime/locations "['America/Toronto', 'Europe/London', 'Australia/Sydney']"

The list of time zone can be taken from: List of tz database time zones - Wikipedia

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .