13

I'm using Ubuntu 20.04 LTS. I want date and time in GNOME Shell's top bar to have the following format:

Sun Jun 13 07:26AM IST 2021

instead of the current:

Jun 13 12:53 PM

current date and time format

How can I achieve this?

BeastOfCaerbannog
  • 12,964
  • 10
  • 49
  • 77
sivasdpi
  • 193
  • 1
  • 7
  • For the week day 'Sun' to be added, i suggest you install the [gnome-tweak-tool](https://packages.ubuntu.com/hirsute/gnome-tweak-tool). And enable the Top Bar > Clock > Weekday – Aravinth Jun 13 '21 at 08:47
  • Does this answer your question? [How do I change the date format in Gnome 3 shell?](https://askubuntu.com/questions/312138/how-do-i-change-the-date-format-in-gnome-3-shell) – muru Jun 13 '21 at 09:47
  • Says a lot about the developers of Gnome. Don't you know that 'merika rules the world, at least they think so. – null Mar 06 '23 at 00:06

1 Answers1

13

There are several extensions in the GNOME Shell Extensions website, but most of them are not actively supported anymore. I'm suggesting you to use the Panel Date Format extension, which works fine on Ubuntu 20.04 and is still maintained.

To customize your clock after installing the extension, follow these steps:

  1. Open Extensions, find the Panel Date Format extension in the list and click the gear icon next to it.

  2. You will be presented with this Preferences menu (image from the extension's GitHub repository):

    preferences menu

  3. In the Format textbox enter the following to get the time format you want:

    %a %e %b %I:%M%p %Z %Y
    

    You can find more info about the date time format syntax here (link also mentioned in the extension's preferences).

  4. Restart GNOME Shell to ensure that the setting is applied by pressing Alt+F2, entering r and pressing Enter.

Your panel's clock should now have the appearance you want!

BeastOfCaerbannog
  • 12,964
  • 10
  • 49
  • 77