2

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?

2
1

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!

3
  • Thank you all will try and tell.
    – sivasdpi
    Jun 13 at 9:55
  • @sivasdpi Did it work? Jun 29 at 3:47
  • Hi I tried unknown's command. It worked. Your suggestion felt difficult . Sorry
    – sivasdpi
    Jun 29 at 7:11

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.